-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
72 lines (67 loc) · 1.54 KB
/
docker-compose.yaml
File metadata and controls
72 lines (67 loc) · 1.54 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
services:
app:
container_name: recycle-study-server
build: .
restart: unless-stopped
ports:
- "8080:8080"
env_file:
- .env
volumes:
- app_log:/app/log
networks:
- observability
depends_on:
mysql:
condition: service_healthy
alloy:
image: grafana/alloy:latest
container_name: alloy
restart: unless-stopped
env_file:
- .env
volumes:
- ./alloy/config.alloy:/etc/alloy/config.alloy
- app_log:/app/log
command:
- "run"
- "--server.http.listen-addr=0.0.0.0:12345"
- "--storage.path=/var/lib/alloy"
- "--stability.level=experimental"
- "/etc/alloy/config.alloy"
ports:
- "12345:12345" # Alloy UI
- "14317:4317" # OTLP gRPC
networks:
- observability
node-exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node-exporter
restart: unless-stopped
networks:
- observability
mysql:
container_name: recycle-study-mysql
image: mysql:8.4
volumes:
- mysql_volume:/var/lib/mysql
restart: unless-stopped
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- observability
volumes:
mysql_volume:
app_log:
networks:
observability: