forked from go-park-mail-ru/2021_1_YSNP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
222 lines (202 loc) · 4.68 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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
version: "3"
# docker rm $(docker ps -a -q) && docker volume prune -f
volumes:
vault-data:
postgres-data:
tarantool-data:
services:
main:
image: salekhin/main
ports:
- "8080:8080"
env_file:
- ./service.env
volumes:
- $PWD/static:/app/static
depends_on:
- postgres
- tarantool
- consul
- vault
logging:
driver: gelf
options:
gelf-address: "udp://localhost:12201"
tag: "main"
auth:
image: salekhin/auth
ports:
- "8081:8081"
env_file:
- ./service.env
volumes:
- $PWD/static:/app/static
depends_on:
- tarantool
- consul
- vault
logging:
driver: gelf
options:
gelf-address: "udp://localhost:12201"
tag: "auth"
chat:
image: salekhin/chat
ports:
- "8082:8082"
env_file:
- ./service.env
volumes:
- $PWD/static:/app/static
depends_on:
- postgres
- consul
- vault
logging:
driver: gelf
options:
gelf-address: "udp://localhost:12201"
tag: "chat"
consul:
image: consul
ports:
- "8500:8500"
vault:
image: vault
cap_add:
- IPC_LOCK
ports:
- "8200:8200"
volumes:
- ./vault-data:/vault/data
- $PWD/configs/vault:/vault/config
command: vault server -config=/vault/config/vault.json
postgres:
image: postgis/postgis
build:
context: ./
dockerfile: Dockerfile
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ysnpkoyadb
POSTGRES_MULTIPLE_EXTENSIONS: postgis,hstore,postgis_topology,postgis_raster,pgrouting
SHARED_PRELOAD_LIBRARIES: pg_cron
ports:
- "5432:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
- $PWD/configs/sql/:/docker-entrypoint-initdb.d/
restart: always
logging:
driver: gelf
options:
gelf-address: "udp://localhost:12201"
tag: "postgres"
tarantool:
image: tarantool/tarantool
environment:
TARANTOOL_USER_NAME: admin
TARANTOOL_USER_PASSWORD: pass
command: tarantool /opt/tarantool/app.lua
ports:
- "3301:3301"
volumes:
- ./tarantool-data:/var/lib/tarantool
- $PWD/configs/lua/:/opt/tarantool/
restart: always
logging:
driver: gelf
options:
gelf-address: "udp://localhost:12201"
tag: "tarantool"
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- $PWD/metrics:/etc/prometheus
alertmanager:
image: prom/alertmanager
ports:
- "9093:9093"
command:
- "--config.file=/etc/alertmanager/alertmanager.yml"
volumes:
- $PWD/metrics:/etc/alertmanager
alertmanager-bot:
image: metalmatze/alertmanager-bot
command:
- "--listen.addr=0.0.0.0:8080"
environment:
ALERTMANAGER_URL: http://alertmanager:9093
BOLT_PATH: /data/bot.db
STORE: bolt
TEMPLATE_PATHS: /templates/default.tmpl
TELEGRAM_ADMIN: "138632615\n211453202\n389692057\n535095969"
TELEGRAM_TOKEN: 1751242193:AAGNrFE61pvarspGfU4FBzhYF2ECUnf0eKo
volumes:
- $PWD/metrics/alertmanager-bot/templates:/templates
grafana:
image: grafana/grafana
ports:
- "5000:5000"
environment:
GF_SERVER_HTTP_PORT: 5000
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
command:
- "--path.rootfs=/host"
ports:
- "9100:9100"
restart: unless-stopped
volumes:
- "/:/host:ro"
jaeger:
image: jaegertracing/all-in-one
ports:
- "6831:6831/udp"
- "16686:16686"
mongo:
image: mongo:4.2
networks:
- graylog
restart: always
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
deploy:
resources:
limits:
memory: 1g
networks:
- graylog
restart: always
graylog:
image: graylog/graylog:4.0
environment:
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
- GRAYLOG_HTTP_EXTERNAL_URI=http://ykoya.ru:9000/
entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh
networks:
- graylog
ports:
- "9000:9000"
- "12201:12201"
- "12201:12201/udp"
depends_on:
- mongo
- elasticsearch
restart: always
networks:
graylog:
driver: bridge