-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
66 lines (61 loc) · 1.6 KB
/
docker-compose.dev.yml
File metadata and controls
66 lines (61 loc) · 1.6 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
services:
nginx:
image: nginx:1.29.5-alpine
ports:
- '80:80'
volumes:
- ./infra/nginx/dev.conf:/etc/nginx/conf.d/default.conf
networks:
- connect-gnu-network
depends_on:
- app
app:
build:
context: .
target: dev
volumes:
- .:/app
- /app/node_modules
expose:
- '3000'
networks:
- connect-gnu-network
prometheus:
image: prom/prometheus:v3.10.0
expose:
- '9090'
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.external-url=${PROMETHEUS_EXTERNAL_URL:-http://localhost/prometheus/}'
- '--web.route-prefix=/'
volumes:
- ./infra/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
networks:
- connect-gnu-network
depends_on:
- app
grafana:
image: grafana/grafana:12.3
expose:
- '3000'
volumes:
- grafana_data:/var/lib/grafana
- ./infra/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./infra/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
environment:
- GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:-admin}
- GF_SERVER_ROOT_URL=${GF_SERVER_ROOT_URL:-http://localhost/grafana}
- GF_SERVER_SERVE_FROM_SUB_PATH=true
networks:
- connect-gnu-network
depends_on:
- prometheus
networks:
connect-gnu-network:
driver: bridge
volumes:
prometheus_data:
grafana_data: