-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2.docker-compose.yaml
78 lines (70 loc) · 1.46 KB
/
2.docker-compose.yaml
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
version: "3.9"
services:
gateway:
image: st118vm101.rtb-lab.pl/gateway:debug
env_file: .env
networks:
- aerospikenetwork
- kafkanetwork
- postgresnetwork
- prometheusnetwork
ports:
- "8088:8088"
deploy:
replicas: 2
placement:
max_replicas_per_node: 1
constraints:
- node.labels.service == gateway
pipeline:
image: st118vm101.rtb-lab.pl/pipeline:latest
env_file: .env
networks:
- kafkanetwork
- postgresnetwork
deploy:
replicas: 2
placement:
max_replicas_per_node: 1
constraints:
- node.labels.service == pipeline
prometheus:
image: prom/prometheus
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
networks:
- prometheusnetwork
ports:
- "9090:9090"
secrets:
- source: scrape_config
target: /etc/prometheus/prometheus.yml
mode: 0777
grafana:
image: grafana/grafana-oss
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
networks:
- prometheusnetwork
ports:
- "3000:3000"
networks:
aerospikenetwork:
driver: overlay
attachable: true
kafkanetwork:
driver: overlay
attachable: true
postgresnetwork:
driver: overlay
attachable: true
prometheusnetwork:
driver: overlay
attachable: true
secrets:
scrape_config:
file: ./services/prometheus/prometheus.yml