-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
126 lines (116 loc) · 2.32 KB
/
docker-compose.yml
File metadata and controls
126 lines (116 loc) · 2.32 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
services:
backend: &backend
build:
context: .
dockerfile: ./compose/backend/Dockerfile
image: backend:latest
container_name: backend
volumes:
- .:/app:z
env_file:
- ./.envs/.backend.env
command: /start
networks:
- backend_network
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16
container_name: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- ./.envs/.postgres.env
networks:
- backend_network
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}" ]
interval: 30s
retries: 3
start_period: 10s
timeout: 10s
mailpit:
image: axllent/mailpit:latest
container_name: mailpit
ports:
- "8025:8025"
volumes:
- mailpit_data:/data
env_file:
- ./.envs/.mailpit.env
networks:
- backend_network
redis:
image: redis:6
container_name: redis
volumes:
- redis_data:/data
networks:
- backend_network
celeryworker:
<<: *backend
container_name: celeryworker
command: /start-celeryworker
ports: []
depends_on:
- redis
networks:
- backend_network
celerybeat:
<<: *backend
container_name: celerybeat
command: /start-celerybeat
ports: []
depends_on:
- redis
networks:
- backend_network
flower:
<<: *backend
container_name: flower
ports:
- "5555:5555"
command: /start-flower
depends_on:
- redis
networks:
- backend_network
minio:
image: minio/minio:latest
container_name: minio
ports:
- "9090:9090"
volumes:
- minio_data:/data
env_file:
- ./.envs/.minio.env
command: server --console-address ":9090" --address ":9000" /data
networks:
- backend_network
nginx:
build:
context: .
dockerfile: ./compose/nginx/Dockerfile
image: nginx:latest
container_name: nginx
ports:
- "8080:80"
depends_on:
- backend
- minio
volumes:
- nginx_data:/var/log/nginx
networks:
- backend_network
networks:
backend_network:
driver: bridge
volumes:
postgres_data:
mailpit_data:
redis_data:
minio_data:
nginx_data: