-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
87 lines (87 loc) · 2.31 KB
/
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
79
80
81
82
83
84
85
86
87
version: "3"
services:
app:
image: app-api
container_name: local-app-api
environment:
DB_HOST: "db"
LOKI_HOST: "loki"
TEMPO_HOST: "tempo"
build:
context: ../
dockerfile: ./docker/app/Dockerfile
ports:
- "8080:8080"
user:
image: user-api
container_name: local-user-api
environment:
DB_HOST: "db"
LOKI_HOST: "loki"
TEMPO_HOST: "tempo"
build:
context: ../
dockerfile: ./docker/user/Dockerfile
ports:
- "8081:8081"
depends_on:
db:
condition: service_healthy
prometheus:
image: prom/prometheus:v2.48.0
container_name: local-prometheus
ports:
- "${PROMETHEUS_PORT:-9090}:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
tempo:
image: grafana/tempo:main-4c3b404
container_name: local-tempo
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./tempo/tempo.yaml:/etc/tempo.yaml
# - ./tempo-data:/tmp/tempo
# ports:
# - "14268" # jaeger ingest
# - "9411:9411" # zipkin
# - "3200:3200"
loki:
image: grafana/loki:k178-5db9a88
container_name: local-loki
command: [ "-config.file=/etc/loki/local-config.yaml" ]
ports:
- "3100:3100"
# environment:
# - JAEGER_AGENT_HOST=tempo
# - JAEGER_ENDPOINT=http://tempo:14268/api/traces
# - JAEGER_SAMPLER_TYPE=const
# - JAEGER_SAMPLER_PARAM=1
grafana:
image: grafana/grafana:10.2.2-ubuntu
container_name: local-grafana
volumes:
- ./grafana/datasources:/etc/grafana/provisioning/datasources
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3000:3000"
db:
platform: linux/x86_64
image: mysql:8.0.23
container_name: local-observability-db
environment:
MYSQL_DATABASE: observability
MYSQL_USER: observability_user
MYSQL_PASSWORD: observability_password
MYSQL_ROOT_PASSWORD: root_observability_password
ports:
- "${HOST_PORT:-3312}:3306"
volumes:
- ./db/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
interval: 10s
timeout: 5s
retries: 5