Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
70 lines (66 loc) · 1.78 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
70 lines (66 loc) · 1.78 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
services:
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_DB: matchingengine
POSTGRES_USER: me_admin
POSTGRES_PASSWORD: devpass
volumes:
- pgdata:/var/lib/postgresql/data
- ./src/MatchingEngine.Config.Postgres/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
- ./deploy/dev/seed.sql:/docker-entrypoint-initdb.d/02-seed.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U me_admin -d matchingengine"]
interval: 5s
timeout: 3s
retries: 5
etcd:
image: bitnami/etcd:3.5
ports:
- "2379:2379"
environment:
ALLOW_NONE_AUTHENTICATION: "yes"
ETCD_ADVERTISE_CLIENT_URLS: http://etcd:2379
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 5s
timeout: 3s
retries: 5
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./deploy/dev/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- promdata:/prometheus
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9090/-/healthy"]
interval: 5s
timeout: 3s
retries: 5
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
volumes:
- ./deploy/dev/grafana/provisioning:/etc/grafana/provisioning:ro
- grafdata:/var/lib/grafana
depends_on:
prometheus:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/api/health"]
interval: 5s
timeout: 3s
retries: 5
volumes:
pgdata:
promdata:
grafdata: