-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (35 loc) · 967 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (35 loc) · 967 Bytes
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
services:
mysql_db:
image: mysql:8.0
container_name: bookstore_mysql
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: bookstore_db
ports:
- "3306:3306"
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-uroot", "-proot_password"]
interval: 5s
timeout: 5s
retries: 10
grafana:
image: grafana/otel-lgtm:latest
container_name: bookstore_grafana
ports:
- "3000:3000" # Grafana UI → http://localhost:3000 (admin / admin)
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP ← used by the Go app
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
atlas:
image: arigaio/atlas:latest
profiles: ["tools"]
volumes:
- .:/work
working_dir: /work
depends_on:
mysql_db:
condition: service_healthy