Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 1.88 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (70 loc) · 1.88 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
73
74
75
version: "3"
services:
jaeger:
image: jaegertracing/all-in-one:1.32
environment:
- COLLECTOR_ZIPKIN_HOST_PORT=:9411
ports:
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686 # jaeger UI
- 14250:14250
- 14268:14268
- 14269:14269
- 9411:9411
grafana:
image: grafana/grafana-enterprise
ports:
- "3030:3000"
volumes:
- ./data/grafana:/var/lib/grafana
- ./data/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./data/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
networks:
- monitoring
prometheus:
image: prom/prometheus
volumes:
# - prometheus_data:/prometheus
- ./data/prometheus:/prometheus
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- monitoring
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
restart: unless-stopped
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
expose:
- 9100
networks:
- monitoring
fibonacci_api:
restart: always
build:
context: ./server
dockerfile: Dockerfile
ports:
- "3010:3010"
- "3011:3011"
volumes:
# Inside the container, don't override, don't redirect, leave the folder as it it
- /app/node_modules
# Inside the container, if application tries to access any file inside the app directory
# Redirect that to server folder in this directory outside the container
# This is useful for
- ./server:/app
networks:
- monitoring