create volume mountpoints

This commit is contained in:
meeb 2020-11-28 17:03:20 +11:00
parent cd8048b477
commit c87adf86d5
2 changed files with 3 additions and 2 deletions

View File

@ -63,10 +63,10 @@ RUN set -x && \
mkdir -p /run/www && \ mkdir -p /run/www && \
chown -R www:www /run/www && \ chown -R www:www /run/www && \
chmod -R 0700 /run/www && \ chmod -R 0700 /run/www && \
mkdir -p /config && \ mkdir -p /config/media && \
chown -R www:www /config && \ chown -R www:www /config && \
chmod -R 0755 /config && \ chmod -R 0755 /config && \
mkdir -p /downloads && \ mkdir -p /downloads/{audio,video} && \
chown -R www:www /downloads && \ chown -R www:www /downloads && \
chmod -R 0755 /downloads && \ chmod -R 0755 /downloads && \
# Reset permissions # Reset permissions

View File

@ -19,5 +19,6 @@ DATABASES = {
} }
MEDIA_ROOT = ROOT_DIR / 'config' / 'media'
SYNC_VIDEO_ROOT = ROOT_DIR / 'downloads' / 'video' SYNC_VIDEO_ROOT = ROOT_DIR / 'downloads' / 'video'
SYNC_AUDIO_ROOT = ROOT_DIR / 'downloads' / 'audio' SYNC_AUDIO_ROOT = ROOT_DIR / 'downloads' / 'audio'