-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
206 lines (190 loc) · 3.98 KB
/
docker-compose.yml
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
version: '3'
networks:
deploy-guide-dev:
driver: bridge
services:
db:
container_name: db
image: postgres:16
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: Mail
networks:
- deploy-guide-dev
volumes:
- db_postgres_data:/var/lib/postgresql/data
restart: unless-stopped
db_question:
container_name: db_question
image: postgres:16
ports:
- "5433:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: Question
networks:
- deploy-guide-dev
volumes:
- db_question_postgres_data:/var/lib/postgresql/data
restart: unless-stopped
backend:
container_name: backend
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
networks:
- deploy-guide-dev
depends_on:
- db
restart: unless-stopped
smtp:
container_name: smtp
build:
context: ./internal/smtp_server
dockerfile: Dockerfile
ports:
- "25:587"
networks:
- deploy-guide-dev
restart: unless-stopped
auth:
container_name: auth
build:
context: .
dockerfile: ./cmd/auth/Dockerfile
ports:
- "8004:8004"
networks:
- deploy-guide-dev
depends_on:
- db
restart: unless-stopped
email:
container_name: email
build:
context: .
dockerfile: ./cmd/email/Dockerfile
ports:
- "8002:8002"
networks:
- deploy-guide-dev
depends_on:
- db
restart: unless-stopped
session:
container_name: session
build:
context: .
dockerfile: ./cmd/session/Dockerfile
ports:
- "8003:8003"
networks:
- deploy-guide-dev
depends_on:
- db
restart: unless-stopped
user:
container_name: user
build:
context: .
dockerfile: ./cmd/user/Dockerfile
ports:
- "8001:8001"
networks:
- deploy-guide-dev
depends_on:
- db
restart: unless-stopped
folder:
container_name: folder
build:
context: .
dockerfile: ./cmd/folder/Dockerfile
ports:
- "8005:8005"
networks:
- deploy-guide-dev
depends_on:
- db
restart: unless-stopped
questionnaire:
container_name: questionnaire
build:
context: .
dockerfile: ./cmd/questionnaire/Dockerfile
ports:
- "8006:8006"
networks:
- deploy-guide-dev
depends_on:
- db_question
restart: unless-stopped
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "9090:9090"
networks:
- deploy-guide-dev
volumes:
- ./monitoring/prometheus:/etc/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
restart: unless-stopped
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
networks:
- deploy-guide-dev
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
restart: unless-stopped
node-exporter:
image: prom/node-exporter
container_name: node-exporter
ports:
- "9100:9100"
networks:
- deploy-guide-dev
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
restart: unless-stopped
minio:
image: minio/minio:latest
command: server /data --address ":9000" --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
networks:
- deploy-guide-dev
volumes:
- ./minio/data:/data
- ./minio/config:/root/.minio
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
restart: unless-stopped
volumes:
db_postgres_data:
db_question_postgres_data:
prometheus_data:
grafana_data:
minio_data:
minio_config: