-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
182 lines (164 loc) · 4.87 KB
/
Copy pathdocker-compose-dev.yml
File metadata and controls
182 lines (164 loc) · 4.87 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
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
services:
nodered:
image: nodered/node-red:3.1.15-minimal
container_name: dataspace-nodered
ports:
- "11880:1880" # Exposes Node-RED UI on http://localhost:1880
volumes:
- nodered-data:/data # Persist flows and configuration
restart: unless-stopped
geospatial-data:
container_name: dataspace-geospatial-data
image: timescale/timescaledb-ha:pg17-all-amd64
restart: always
environment:
POSTGRES_DB: "dataspace"
POSTGRES_USER: "dataspace-geospatial-user"
POSTGRES_PASSWORD: "password"
ports:
- "13328:5432"
volumes:
- dataspace-geospatial-db:/home/postgres/pgdata/data:rw
- ./init/postgres.sql:/docker-entrypoint-initdb.d/1.sql
- ./init/init-auth.sql:/docker-entrypoint-initdb.d/2.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dataspace-geospatial-user -d dataspace"]
timeout: 2s
retries: 2
geospatial-data-exporter:
container_name: dataspace-geospatial-exporter
image: quay.io/prometheuscommunity/postgres-exporter:v0.17.0
environment:
- DATA_SOURCE_NAME=postgresql://dataspace-geospatial-user:password@geospatial-data:5432/dataspace?sslmode=disable
ports:
- 9204:9187
links:
- geospatial-data
depends_on:
- geospatial-data
grafana:
container_name: dataspace-grafana
image: grafana/grafana-enterprise:10.2.2
restart: always
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=password
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/var/lib/grafana/dashboards/dashboard.json
ports:
- "13201:3000"
volumes:
- grafana-volume:/var/lib/grafana
prometheus:
container_name: dataspace-prometheus
image: prom/prometheus:v3.1.0
restart: always
volumes:
- ./prometheus:/etc/prometheus
- prometheus-volume:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus-dev.yml"
- "--log.level=debug"
ports:
- 19290:9090
node-exporter:
container_name: dataspace-node-exporter
image: prom/node-exporter:v1.8.2
restart: always
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
ports:
- "19200:9100"
autoheal:
container_name: dataspace-autoheal
image: willfarrell/autoheal:latest
tty: true
restart: always
environment:
- AUTOHEAL_INTERVAL=60
- AUTOHEAL_START_PERIOD=120
- AUTOHEAL_DEFAULT_STOP_TIMEOUT=10
volumes:
- /var/run/docker.sock:/var/run/docker.sock
alert-manager:
image: prom/alertmanager:v0.28.0
volumes:
- "./alertmanager:/config" # Mount local alertmanager config to container
- alertmanager:/data
ports:
- 19193:9093
command:
- "--config.file=/config/alertmanager.yml" # Start alertmanager with config
- "--log.level=debug"
zookeeper:
image: confluentinc/cp-zookeeper:7.8.0
ports:
- "2281:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
healthcheck:
test: nc -z localhost 2181 || exit -1
interval: 10s
timeout: 5s
retries: 3
labels:
- "autoheal=true"
volumes:
- zookeeper-data:/var/lib/zookeeper/data
- zookeeper-log:/var/lib/zookeeper/log
kafka:
image: confluentinc/cp-kafka:7.8.0
container_name: dataspace-kafka
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9993,OUTSIDE://localhost:9992
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9993,OUTSIDE://0.0.0.0:9992
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
ports:
- "9992:9992"
expose:
- "9993"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- kafka-data:/var/lib/kafka/data
depends_on:
- zookeeper
healthcheck:
test: kafka-topics --bootstrap-server localhost:9992 --list
interval: 5s
timeout: 10s
retries: 5
labels:
- "autoheal=true"
kafka-exporter:
image: danielqsj/kafka-exporter:v1.8.0
command: ["--kafka.server=kafka:9993"]
depends_on:
kafka:
condition: service_healthy
ports:
- 9328:9308
postgres-exporter:
image: quay.io/prometheuscommunity/postgres-exporter:v0.16.0
container_name: dataspace-postgres-exporter
environment:
- DATA_SOURCE_NAME=postgresql://username:password@172.17.0.1:5432/postgres?sslmode=disable
ports:
- 9287:9187
volumes:
grafana-volume:
prometheus-volume:
alertmanager:
dataspace-geospatial-db:
nodered-data:
kafka-data:
zookeeper-data:
zookeeper-log: