generated from bool64/go-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1.31 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
version: "2.4" # Version 2 allows health checking outside of docker stack.
services:
database:
platform: linux/x86_64
image: mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: db
healthcheck:
test: "/usr/bin/mysql --user=root --password=secret --execute \"SHOW DATABASES;\""
interval: 1s
timeout: 3s
retries: 30
# Prometheus, grafana and jaeger are not necessary for the service to run, you can comment them out or remove.
prometheus:
image: prom/prometheus:latest
volumes:
- ./data/prometheus:/prometheus
- ./resources/docker/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
grafana:
image: grafana/grafana:latest
volumes:
- ./resources/docker/grafana.ini:/etc/grafana/grafana.ini
- ./resources/docker/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./resources/docker/dashboards:/etc/grafana/provisioning/dashboards
ports:
- 3001:3000
links:
- prometheus
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "6831:6831/udp"
- "16686:16686"
# Waiter blocks until required services are up.
waiter:
depends_on:
database:
condition: service_healthy
image: busybox