-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.sample
68 lines (66 loc) · 1.69 KB
/
docker-compose.yml.sample
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
####
# Example of monitor & pp-code-metrics containers
---
version: '3'
services:
influxdb:
container_name: influxdb
hostname: influxdb
image: influxdb:latest
restart: always
ports:
- "8086:8086"
volumes:
- influxdb_storage:/var/lib/influxdb2
- influxdb_config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_TOKEN}
# chronograf:
# container_name: chronograf
# hostname: chronograf
# image: chronograf:latest
# restart: always
# ports:
# - "8888:8888"
# volumes:
# - chronograf_storage:/var/lib/chronograf
# depends_on:
# - influxdb
# environment:
# - INFLUXDB_URL="http://influxdb:8086"
# - INFLUXDB_INIT_USERNAME=${INFLUXDB_USERNAME}
# - INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD}
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana:latest
restart: always
ports:
- "3000:3000"
depends_on:
- influxdb
volumes:
- grafana_data:/var/lib/grafana
pp-code-metrics:
container_name: pp-code-metrics
hostname: pp-code-metrics
image: neofob/pp-code-metrics:latest
restart: always
depends_on:
- influxdb
volumes:
- ./my_settings.yml:/opt/pp-code-metrics/my_settings.yml:ro
volumes:
chronograf_storage:
external: true
influxdb_storage:
external: true
influxdb_config:
external: true
grafana_data:
external: true