-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
62 lines (57 loc) · 1.28 KB
/
docker-compose.yaml
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
version: "3"
services:
custom_service:
image: custom_service
build:
dockerfile: Dockerfile
context: ./custom-service
container_name: custom-service
restart: always
ports:
- 8090:80
networks:
- monitoring
grafana:
image: grafana/grafana:7.0.1
volumes:
- ./grafana/etc:/etc/grafana:ro
#- grafana-lib:/var/lib/grafana
container_name: grafana
restart: always
ports:
- 3000:3000
networks:
- monitoring
influxdb:
image: influxdb:1.8.0
container_name: influxdb
volumes:
- ./influxdb/etc:/etc/influxdb
#- influxdb-lib:/var/lib/influxdb
restart: always
ports:
- 8086:8086
networks:
- monitoring
environment:
- INFLUXDB_DB=telegraf
- INFLUXDB_USER=telegraf
- INFLUXDB_ADMIN_ENABLED=true
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=Welcome1
telegraf:
image: telegraf:1.14.3
container_name: telegraf
restart: always
networks:
- monitoring
# extra_hosts:
# - "influxdb:192.168.0.110"
volumes:
- ./telegraf/etc/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
monitoring:
volumes:
grafana-lib:
influxdb-lib: