forked from bnbong/Project-Pinned
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
48 lines (42 loc) · 903 Bytes
/
docker-compose.prod.yml
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
version: '3.8'
services:
redis:
image: "redis:alpine"
volumes:
- redis-data:/data
ports:
- "6379:6379"
backend:
image: bnbong/project-pinned:backend
deploy:
resources:
limits:
cpus: '1'
volumes:
- django-static-volume:/app/static
environment:
- DJANGO_SETTINGS_MODULE=project_pinned.settings.prod
ports:
- "8000:8000"
frontend:
image: bnbong/project-pinned:frontend
ports:
- "3000:3000"
command: ["npm", "start"]
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
args:
- NGINX_CONF_FILE=nginx.conf
volumes:
- django-static-volume:/data/static
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
ports:
- "80:80"
- "443:443"
volumes:
redis-data:
django-static-volume:
postgres_data: