diff --git a/Containers/talk-recording/Dockerfile b/Containers/talk-recording/Dockerfile index 3671e76f1d6..23f02d95131 100644 --- a/Containers/talk-recording/Dockerfile +++ b/Containers/talk-recording/Dockerfile @@ -48,6 +48,7 @@ RUN set -ex; \ build-base \ linux-headers; +VOLUME /tmp WORKDIR /tmp USER 122 ENTRYPOINT ["/start.sh"] diff --git a/Containers/talk-recording/start.sh b/Containers/talk-recording/start.sh index 14a893a41ab..c73b7ea1398 100644 --- a/Containers/talk-recording/start.sh +++ b/Containers/talk-recording/start.sh @@ -16,6 +16,9 @@ if [ -z "$HPB_DOMAIN" ]; then export HPB_DOMAIN="$NC_DOMAIN" fi +# Delete all contents on startup to start fresh +rm -fr /tmp/{*,.*} + cat << RECORDING_CONF > "/conf/recording.conf" [logs] # 30 means Warning diff --git a/php/containers.json b/php/containers.json index 11eae04b744..0faf85e9fbb 100644 --- a/php/containers.json +++ b/php/containers.json @@ -440,6 +440,13 @@ "RECORDING_SECRET=%RECORDING_SECRET%", "INTERNAL_SECRET=%TALK_INTERNAL_SECRET%" ], + "volumes": [ + { + "source": "nextcloud_aio_talk_recording", + "destination": "/tmp", + "writeable": true + } + ], "shm_size": 2147483648, "secrets": [ "RECORDING_SECRET", @@ -454,7 +461,6 @@ ], "read_only": true, "tmpfs": [ - "/tmp", "/conf" ], "cap_drop": [