-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yaml
55 lines (50 loc) · 996 Bytes
/
docker-compose-prod.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "3.8"
services:
db:
image: postgres
volumes:
- ./data/:/var/lib/postgresql/data
- ./frontend/nginx.prod.conf:/etc/nginx/conf.d/default.conf
env_file:
- .env
- prod.env
ports:
- 5423:5432
networks:
- ea-local
backend:
restart: unless-stopped
image: ${EA_REGISTRY}/backend:0.1.0
entrypoint: /app/wsgi-entrypoint.sh
ports:
- 8000:8000
volumes:
- static_volume:/app/ethicsAdventure/django-static
env_file:
- .env
- prod.env
depends_on:
- db
networks:
- ea-local
- default
frontend:
restart: unless-stopped
image: ${EA_REGISTRY}/frontend:0.1.0
ports:
- 80:80
volumes:
- static_volume:/app/ethicsAdventure/django-static
env_file:
- .env
- prod.env
depends_on:
- backend
networks:
- default
volumes:
static_volume: {}
networks:
ea-local:
internal: true
name: internal-network