-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
69 lines (62 loc) · 1.38 KB
/
docker-compose.yaml
File metadata and controls
69 lines (62 loc) · 1.38 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
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- frontend
- app
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend-app
expose:
- "80"
app:
image: pmayors/backend # Docker Hub image
container_name: backend-app
expose:
- "3000"
prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
command:
- --config.file=/etc/prometheus/prometheus.yml
networks:
- monitor
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
ports:
- "8085:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
networks:
- monitor
grafana:
image: grafana/grafana
ports:
- "3000:3000"
volumes:
- ./grafana/dashboards:/etc/grafana/dashboards
- ./grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- prometheus
networks:
- monitor
volumes:
grafana-storage:
networks:
default:
monitor: