-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
43 lines (36 loc) · 938 Bytes
/
docker-compose.prod.yml
File metadata and controls
43 lines (36 loc) · 938 Bytes
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
services:
postgres:
restart: unless-stopped
backend:
build:
# docker compose will build the image from the local Dockerfile
# on the server, using the final production stage by default
context: ./symcomp-server
restart: unless-stopped
command: gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 5 --timeout 30
frontend:
build:
context: ./symcomp
restart: unless-stopped
nginx:
image: nginx:1.25-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- certbot_conf:/etc/letsencrypt
- certbot_www:/var/www/certbot
depends_on:
- frontend
- backend
certbot:
image: certbot/certbot
volumes:
- certbot_conf:/etc/letsencrypt
- certbot_www:/var/www/certbot
volumes:
postgres_data:
certbot_conf:
certbot_www: