-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
54 lines (50 loc) · 1.18 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
version: "3.5"
services:
flask-api:
build:
context: ./api
restart: unless-stopped
container_name: flask-api
image: example-flask-api
ports:
- "5000:5000"
networks:
example-network:
ipv4_address: 172.16.238.10
example-prometheus:
image: prom/prometheus:latest
restart: unless-stopped
container_name: example-prometheus
ports:
- 9090:9090
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
example-network:
ipv4_address: 172.16.238.11
example-grafana:
image: grafana/grafana:latest
restart: unless-stopped
user: "472"
container_name: example-grafana
depends_on:
- example-prometheus
ports:
- 3000:3000
volumes:
- ./monitoring/datasource.yml:/etc/grafana/provisioning/datasource.yml
env_file:
- ./monitoring/config.monitoring
networks:
example-network:
ipv4_address: 172.16.238.12
networks:
example-network:
name: example-network
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24