-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (67 loc) · 1.52 KB
/
docker-compose.yml
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
# https://github.com/vegasbrianc/prometheus/blob/master/docker-compose.yml
# https://docs.docker.com/compose/production/
version: "3.9"
services:
fsharp-api-server:
build: .
container_name: fsharp-api
deploy:
resources:
limits:
cpus: "0.25"
memory: "256M"
environment:
- HOST=0.0.0.0
- PORT=8085
ports:
- "8085:8085"
- "9085:9085"
networks:
- monitoring-network
restart: always
prometheus:
image: prom/prometheus:v2.45.0
container_name: prometheus
deploy:
resources:
limits:
cpus: "0.25"
memory: "256M"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.config.file=/etc/prometheus/web.yml"
networks:
- monitoring-network
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
ports:
- "9090:9090"
restart: always
grafana:
image: grafana/grafana:8.5.22-ubuntu
container_name: grafana
deploy:
resources:
limits:
cpus: "0.25"
memory: "256M"
user: "472"
depends_on:
- prometheus
networks:
- monitoring-network
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- ./grafana/config.monitoring
ports:
- "3000:3000"
restart: always
networks:
monitoring-network: {}
volumes:
prometheus_data: {}
grafana_data: {}