-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yaml
36 lines (36 loc) · 959 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
services:
db:
image: mongo:6.0-jammy
restart: unless-stopped
mem_limit: 512m
networks:
- ytrv_net
volumes:
- ytrv_db:/data/db
app:
image: graham-walker/youtube-dl-react-viewer:1.3.1
build:
context: .
dockerfile: Dockerfile
args:
BACKEND_PORT: ${BACKEND_PORT:-5000}
YOUTUBE_DL_UPDATE_COMMAND: ${YOUTUBE_DL_UPDATE_COMMAND}
pull_policy: never
restart: unless-stopped
mem_limit: 512m
networks:
- ytrv_net
ports:
- "0.0.0.0:${BACKEND_PORT:-5000}:${BACKEND_PORT:-5000}/tcp"
volumes:
- "${OUTPUT_DIRECTORY:?Error: OUTPUT_DIRECTORY is not set or is empty}:/youtube-dl"
depends_on:
- db
env_file:
- .env
volumes:
ytrv_db:
networks:
default:
ytrv_net:
driver: "bridge"