-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 929 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 929 Bytes
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
version: '3'
services:
collector_influxdb:
image: influxdb:latest
container_name: collector_influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
- "2003:2003"
env_file:
- './collector/env.influxdb'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./collector/influxdb-data:/var/lib/influxdb
collector_grafana:
image: grafana/grafana:latest
container_name: collector_grafana
ports:
- "3000:3000"
env_file:
- './collector/env.grafana'
user: "0"
links:
- collector_influxdb
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./collector/grafana-data:/var/lib/grafana
- ./collector/provisioning:/etc/grafana/provisioning
generator_monitor:
build:
dockerfile: ./Dockerfile
context: .
network_mode: "host"
volumes:
- ./config.json:/usr/src/app/config.json