-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (54 loc) · 1.08 KB
/
docker-compose.yaml
File metadata and controls
59 lines (54 loc) · 1.08 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
53
54
55
56
57
58
59
version: "3.9"
services:
backend:
image: backend:1
build:
context: .
dockerfile: ./devops/backend/Dockerfile
restart: unless-stopped
env_file:
- ./.env
volumes:
- static_volume:/app/backend/static
- media_volume:/app/backend/media
deploy:
replicas: 3
update_config:
parallelism: 1
delay: 10s
order: start-first
failure_action: rollback
restart_policy:
condition: none
depends_on:
- db
networks:
- downtime
db:
image: postgres:16.2-alpine3.19
env_file:
- ./.env
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- "5432:5432"
networks:
- downtime
nginx:
image: nginx:stable-alpine
ports:
- "80:80"
volumes:
- ./devops/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- static_volume:/app/backend/static
- media_volume:/app/backend/media
depends_on:
- backend
networks:
- downtime
volumes:
postgres_data:
static_volume:
media_volume:
networks:
downtime: