-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (48 loc) · 1.36 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
version: "3.8"
services:
influxdb:
image: influxdb:2.7.3-alpine
restart: always
ports:
- '8086:8086'
volumes:
- ./influxdb/data/:/var/lib/influxdb
- ./influxdb/config/:/etc/influxdb
- /etc/localtime:/etc/localtime:ro
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_TOKEN=${INFLUXDB_TOKEN}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_TOKEN}
- TZ=${timezone}
grafana:
image: grafana/grafana:10.2.0
user: '${current_uid}'
restart: always
ports:
- '8080:${GRAFANA_PORT}'
volumes:
- ./grafana/data/:/var/lib/grafana/
- ./grafana/config/:/etc/grafana/
- /etc/localtime:/etc/localtime:ro
depends_on:
- influxdb
environment:
- TZ=${timezone}
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
python:
build: ./python/.
restart: always
depends_on:
- influxdb
env_file:
- .env
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
deploy:
replicas: ${numberofHosts}