diff --git a/Containers/talk-recording/Dockerfile b/Containers/talk-recording/Dockerfile index 04a67ba3..37959745 100644 --- a/Containers/talk-recording/Dockerfile +++ b/Containers/talk-recording/Dockerfile @@ -31,6 +31,9 @@ RUN set -ex; \ touch /etc/recording.conf; \ chown recording:recording -R \ /tmp /etc/recording.conf; \ + mkdir -p /conf; \ + chmod 777 /conf; \ + chmod 777 /tmp; \ apk del --no-cache \ git \ wget \ @@ -40,7 +43,7 @@ RUN set -ex; \ WORKDIR /tmp USER recording ENTRYPOINT ["/start.sh"] -CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/etc/recording.conf"] +CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/conf/recording.conf"] HEALTHCHECK CMD nc -z localhost 1234 || exit 1 LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/Containers/talk-recording/start.sh b/Containers/talk-recording/start.sh index 9b030438..9f0fc7f1 100644 --- a/Containers/talk-recording/start.sh +++ b/Containers/talk-recording/start.sh @@ -12,7 +12,7 @@ elif [ -z "$INTERNAL_SECRET" ]; then exit 1 fi -cat << RECORDING_CONF > "/etc/recording.conf" +cat << RECORDING_CONF > "/conf/recording.conf" [logs] # 30 means Warning level = 30 diff --git a/php/containers.json b/php/containers.json index 5686ef6a..6b753a0a 100644 --- a/php/containers.json +++ b/php/containers.json @@ -359,6 +359,11 @@ ], "networks": [ "nextcloud-aio" + ], + "read_only": true, + "tmpfs": [ + "/tmp", + "/conf" ] }, {