Skip to content

Commit f2a7840

Browse files
Add variable to change host video directory
1 parent 80309bb commit f2a7840

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ SUBPROCESS_VERBOSE_OUTPUT=False
2323
NUM_GUNICORN_WORKER=4
2424
#If a tmdb API token is provided, Movies/Tv show cover will be downloaded from there.
2525
TMBD_KEY=
26+
#Change the host video dir
27+
HOST_VIDEOS_DIR=./Videos

docker-compose-debug.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ services:
3535
volumes:
3636
- ./backend/:/usr/src/app/
3737
- ./log/:/debug/
38-
- ./Videos/:/usr/src/app/Videos
38+
- "${HOST_VIDEOS_DIR}:/usr/src/app/Videos"
3939
- progress_volume:/usr/progress/
4040
- static_volume:/usr/static/
4141
- /static/
@@ -50,7 +50,7 @@ services:
5050
build: ./nginx
5151
volumes:
5252
- ./backend/:/usr/src/app/
53-
- ./Videos/:/usr/src/app/Videos
53+
- "${HOST_VIDEOS_DIR}:/usr/src/app/Videos"
5454
- static_volume:/usr/static/
5555
- torrent:/usr/torrent/:rw
5656
- secrets_volume:/secrets/
@@ -80,7 +80,7 @@ services:
8080
command: bash -c "./start_celery_workers.sh"
8181
volumes:
8282
- ./backend/:/usr/src/app/
83-
- ./Videos/:/usr/src/app/Videos
83+
- "${HOST_VIDEOS_DIR}:/usr/src/app/Videos"
8484
- static_volume:/usr/static/
8585
- progress_volume:/usr/progress/
8686
- torrent:/usr/torrent/:rw

docker-compose-prod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
environment:
3131
- DEPLOY_ENV=production
3232
volumes:
33-
- ./Videos/:/usr/src/app/Videos
33+
- "${HOST_VIDEOS_DIR}:/usr/src/app/Videos"
3434
- static_volume:/usr/static/
3535
- progress_volume:/usr/progress/
3636
- ipython:/root/.ipython
@@ -44,7 +44,7 @@ services:
4444
nginx:
4545
build: ./nginx
4646
volumes:
47-
- ./Videos/:/usr/src/app/Videos
47+
- "${HOST_VIDEOS_DIR}:/usr/src/app/Videos"
4848
- static_volume:/usr/static/
4949
- torrent:/usr/torrent/:rw
5050
- secrets_volume:/secrets/
@@ -61,7 +61,7 @@ services:
6161
image: webmultimedia/http-streaming-server:master
6262
command: bash -c "./start_celery_workers.sh"
6363
volumes:
64-
- ./Videos/:/usr/src/app/Videos
64+
- "${HOST_VIDEOS_DIR}:/usr/src/app/Videos"
6565
- torrent:/usr/torrent/:rw
6666
- progress_volume:/usr/progress/
6767
- static_volume:/usr/static/

0 commit comments

Comments
 (0)