-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.17 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
web:
build: .
env_file: .env
environment:
CONTENT_SERVICE_HOST: content-service
CONTENT_SERVICE_PORT: 50051
expose:
- "8000"
ports:
- "127.0.0.1:8000:8000"
volumes:
- static_data:/vol/static
- ./www.youtube.com_cookies.txt:/app/www.youtube.com_cookies.txt:ro
depends_on:
- content-service
content-service:
build:
context: .
dockerfile: content-service/Dockerfile
environment:
CONTENT_SERVICE_PORT: 50051
LOG_LEVEL: INFO
expose:
- "50051"
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./Backend/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- static_data:/vol/static:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
- /var/www/certbot:/var/www/certbot:ro
depends_on:
- web
certbot:
image: certbot/certbot
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- /var/www/certbot:/var/www/certbot
volumes:
static_data:
# docker compose up --build : for rebuilds can add -d for no logs
# docker compose up -d : doesnt force rebuild and runs in background
# docker compose down