-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (67 loc) · 2.23 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
71
version: '3.8'
services:
influxdb:
image: influxdb:2.7
container_name: ${CONTAINER_NAME_PREFIX}-influxdb
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${DOCKER_INFLUXDB_INIT_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${DOCKER_INFLUXDB_INIT_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${DOCKER_INFLUXDB_INIT_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${DOCKER_INFLUXDB_INIT_BUCKET}
- DOCKER_INFLUXDB_INIT_RETENTION=${DOCKER_INFLUXDB_INIT_RETENTION}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${DOCKER_INFLUXDB_INIT_ADMIN_TOKEN}
ports:
- 8083:8083
- 8086:8086
- 8090:8090
- 2003:2003
restart: unless-stopped
yq:
image: linuxserver/yq:3.2.3
container_name: ${CONTAINER_NAME_PREFIX}-yq-sidecar
command: sh /etc/grafana/provisioning/datasources/setup.sh ${GF_INFLUXDB_URL} ${DOCKER_INFLUXDB_INIT_ORG} ${DOCKER_INFLUXDB_INIT_BUCKET} ${DOCKER_INFLUXDB_INIT_ADMIN_TOKEN}
volumes:
- grafana_volume:/etc/grafana/provisioning
restart: no
depends_on:
- influxdb
grafana:
image: grafana/grafana-oss:9.5.12
container_name: ${CONTAINER_NAME_PREFIX}-grafana
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel,briangann-gauge-panel,natel-plotly-panel,grafana-simple-json-datasource,grafana-xyzchart-panel
- GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD}
user: "0"
volumes:
- grafana_volume:/etc/grafana/provisioning
ports:
- 3000:3000
restart: unless-stopped
depends_on:
- yq
data-tools-transmission:
container_name: ${CONTAINER_NAME_PREFIX}-transmission
build:
dockerfile: Dockerfile
environment:
- DEBUG=${DT_DEBUG}
- PS5_IP=${DT_PS5_IP}
- INFLUXDB_V2_URL=${GF_INFLUXDB_URL}
- INFLUXDB_V2_ORG=${DOCKER_INFLUXDB_INIT_ORG}
- INFLUXDB_V2_TOKEN=${DOCKER_INFLUXDB_INIT_ADMIN_TOKEN}
- INFLUXDB_V2_BUCKET=${DOCKER_INFLUXDB_INIT_BUCKET}
ports:
- 33739:33739/udp
- 33740:33740/udp
restart: unless-stopped
depends_on:
- grafana
volumes:
grafana_volume:
driver: local
driver_opts:
o: bind
type: none
device: ./config/grafana/