-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
70 lines (64 loc) · 1.8 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
63
64
65
66
67
68
69
70
version: "3.9"
services:
influxdb:
image: influxdb:latest
ports:
- '8086:8086'
volumes:
- influxdb-storage:/var/lib/influxdb
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USERNAME:-admin}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD:-changemeplease}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_ADMIN_TOKEN:-changemeplease1234}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG:-my-org}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET:-my-bucket}
networks:
- local_nw
chronograf:
image: chronograf:latest
ports:
- '127.0.0.1:8888:8888'
volumes:
- chronograf-storage:/var/lib/chronograf
depends_on:
- influxdb
environment:
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_USERNAME=${INFLUXDB_USERNAME:-admin}
- INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD:-changemeplease}
networks:
- local_nw
grafana:
image: grafana/grafana:latest
ports:
- '3000:3000'
volumes:
- grafana-storage:/var/lib/grafana
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:-changemeplease}
networks:
- local_nw
python-pinger:
build:
context: .
dockerfile: python-ping/Dockerfile
command: bash -c "poetry run python python_ping/main.py"
networks:
- local_nw
environment:
- INFLUXDB_ORG=${INFLUXDB_ORG:-my-org}
- INFLUXDB_BUCKET=${INFLUXDB_BUCKET:-my-bucket}
- INFLUXDB_TOKEN=${INFLUXDB_ADMIN_TOKEN:-changemeplease1234}
- INFLUXDB_HOSTNAME=influxdb
- INFLUXDB_PORT=8086
volumes:
influxdb-storage:
chronograf-storage:
grafana-storage:
networks:
local_nw:
driver: bridge