-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (90 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
100 lines (90 loc) · 1.8 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
networks:
app:
driver: bridge
volumes:
prometheus_data:
grafana_data:
services:
etcd:
image: "bitnami/etcd:latest"
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_LOG_LEVEL=debug
ports:
- 2379:2379
- 2380:2380
networks:
- app
healthcheck:
test:
["CMD", "etcdctl", "endpoint", "health", "--endpoints=http://etcd:2379"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
go-app:
build:
context: ./backend
dockerfile: ${DOCKERFILE:-Dockerfile}
ports:
- "8080:8080"
env_file:
- ./backend/.env
extra_hosts:
- "host.docker.internal:host-gateway"
command: ["./engine", "--etcd-endpoints=http://etcd:2379"]
networks:
- app
depends_on:
etcd:
condition: service_healthy
prometheus:
build:
context: ./prometheus
dockerfile: Dockerfile
volumes:
- prometheus_data:/prometheus
ports:
- "9090:9090"
networks:
- app
grafana:
build:
context: ./grafana
dockerfile: Dockerfile
volumes:
- grafana_data:/var/lib/grafana
ports:
- "3000:3000"
networks:
- app
node-exporter:
image: prom/node-exporter
command:
- "--path.rootfs=/host"
volumes:
- "/:/host:ro,rslave"
networks:
- app
cli:
build:
context: ./cli
dockerfile: Dockerfile
networks:
- app
depends_on:
- go-app
frontend:
build:
context: ./frontend
dockerfile: ${DOCKERFILE:-Dockerfile}
environment:
- VITE_API_URL=/api/v1
ports:
- "5005:80"
networks:
- app
depends_on:
- go-app