-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (93 loc) · 2.34 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
version: '3.9'
services:
app-parser:
image: "ad/parser"
build: https://github.com/sku4/ad-parser.git
hostname: parser.sku
restart: always
depends_on:
db-tnt-storage:
condition: service_healthy
db-tnt-replica:
condition: service_healthy
app-notifier:
image: "ad/notifier"
build: https://github.com/sku4/ad-notifier.git
hostname: notifier.sku
restart: always
depends_on:
db-tnt-storage:
condition: service_healthy
db-tnt-replica:
condition: service_healthy
environment:
- TELEGRAM_BOT_TOKEN
app-api:
image: "ad/api"
build: https://github.com/sku4/ad-api.git
hostname: api.sku
restart: always
depends_on:
db-tnt-storage:
condition: service_healthy
db-tnt-replica:
condition: service_healthy
ports:
- "8002:8000"
environment:
- HOST_URL
- TELEGRAM_BOT_TOKEN
- TELEGRAM_FEEDBACK_CHAT_ID
db-tnt-storage:
image: "ad/tnt/storage"
build: https://github.com/sku4/ad-tnt.git
hostname: storage.sku
environment:
TT_INSTANCE_NAME: 'storage'
TT_INSTANCE_PORT: 3301
TT_REPLICATION: "storage.sku:3301,replica.sku:3301"
volumes:
- /home/skubach/ad/storage:/usr/share/tarantool/ad/storage
ports:
- "3301:3301"
db-tnt-replica:
image: "ad/tnt/replica"
build: https://github.com/sku4/ad-tnt.git
hostname: replica.sku
environment:
TT_INSTANCE_NAME: 'replica'
TT_INSTANCE_PORT: 3301
TT_REPLICATION: "storage.sku:3301,replica.sku:3301"
TT_INSTANCE_RO: true
volumes:
- /home/skubach/ad/replica:/usr/share/tarantool/ad/replica
ports:
- "3302:3301"
prometheus:
image: "ad/prometheus"
build:
context: metrics
dockerfile: prometheus.dockerfile
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- /home/skubach/ad/metrics/prometheus:/prometheus
extra_hosts:
- host.docker.internal:host-gateway
user: "1000" # id -u
grafana:
image: "ad/grafana"
build:
context: metrics
dockerfile: grafana.dockerfile
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- /home/skubach/ad/metrics/grafana:/var/lib/grafana
links:
- prometheus
user: "1000" # id -u
environment:
- GF_SERVER_DOMAIN