-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
52 lines (48 loc) · 1009 Bytes
/
Copy pathdocker-compose.production.yml
File metadata and controls
52 lines (48 loc) · 1009 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
42
43
44
45
46
47
48
49
50
51
52
version: '3.3'
volumes:
pg_data:
static:
media:
redoc:
services:
db:
image: postgres:13.10
env_file: .env
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 5s
timeout: 30s
retries: 20
backend:
depends_on:
db:
condition: service_healthy
image: atrocraz/infra_backend-1
env_file: .env
volumes:
- static:/backend_static
- media:/app/media/
- redoc:/app/docs/
frontend:
image: atrocraz/infra_frontend-1
env_file: .env
command: cp -r /app/build/. /result_build/
volumes:
- static:/result_build/
depends_on:
- db
gateway:
image: atrocraz/infra_gateway-1
env_file: .env
volumes:
- static:/staticfiles/
- media:/app/media/
- ./docs/:/usr/share/nginx/html/api/docs/
# - redoc:/usr/share/nginx/html/api/docs/
ports:
- 8000:80
depends_on:
- backend
- frontend