-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yml
More file actions
62 lines (57 loc) · 1.42 KB
/
compose.yml
File metadata and controls
62 lines (57 loc) · 1.42 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
name: stationapi
services:
api:
build:
context: .
dockerfile: ./docker/api/Dockerfile
depends_on:
- psql
volumes:
- .:/app
environment:
DATABASE_URL: postgresql://stationapi:stationapi@psql/stationapi
DISABLE_GRPC_WEB: false
DISABLE_BUS_FEATURE: false
HOST: 0.0.0.0
METRICS_HOST: 0.0.0.0
ports:
- 50051:50051
- 50052:50052
restart: always
psql:
image: postgres:18
environment:
POSTGRES_USER: stationapi
POSTGRES_PASSWORD: stationapi
POSTGRES_DB: stationapi
restart: always
ports:
- 5432:5432
volumes:
- ./docker/postgres:/docker-entrypoint-initdb.d:ro
prometheus:
image: prom/prometheus:${PROMETHEUS_VERSION:-v3.2.1}
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
ports:
- 9090:9090
restart: always
grafana:
image: grafana/grafana:${GRAFANA_VERSION:-11.5.2}
depends_on:
- prometheus
volumes:
- ./docker/grafana/provisioning:/etc/grafana/provisioning:ro
- ./docker/grafana/dashboards:/var/lib/grafana/dashboards:ro
- grafana_data:/var/lib/grafana
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_USERS_ALLOW_SIGN_UP: "false"
ports:
- 3001:3000
restart: always
volumes:
prometheus_data:
grafana_data: