forked from NickScherbakov/Severstal_ICT2024-complete-reconstruction-using-Copilot-Claude-Sonnet-4.5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (81 loc) · 1.86 KB
/
Copy pathdocker-compose.yml
File metadata and controls
89 lines (81 loc) · 1.86 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3'
services:
db:
container_name: db
image: postgres:15-alpine
restart: always
expose:
- 5432
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env
rabbitmq:
hostname: 'rabbitmq'
image: rabbitmq:3.13.2
restart: on-failure
expose:
- 5672
env_file:
- .env
volumes:
- rabbitmq_data:/var/lib/rabbitmq
backend:
container_name: backend
build:
context: .
dockerfile: Dockerfile
restart: always
env_file:
- .env
volumes:
- media_value:/app/media/
- static_value:/app/static/
depends_on:
- db
celery:
container_name: celery
build:
context: .
dockerfile: Dockerfile
command: bash -c "celery -A analyst.celery worker"
restart: always
env_file:
- .env
depends_on:
- backend
certbot:
image: certbot/certbot:latest
restart: always
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
nginx:
container_name: nginx
restart: always
build:
context: .
dockerfile: deploy/nginx/Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- media_value:/var/html/media/
- static_value:/var/html/static/
- ./titan_frontend/front_dist:/usr/share/nginx/html/
depends_on:
- certbot
- backend
volumes:
static_value:
media_value:
postgres_data:
rabbitmq_data:
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1450