mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 10:24:53 +01:00
alias
This commit is contained in:
3
influxdb/.env
Executable file
3
influxdb/.env
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
APPNAME=home-assistant
|
||||||
|
DOCKER_REGISTRY=r.sectorq.eu/library/
|
||||||
|
RESTART=always
|
||||||
0
influxdb/.env.influxdb2-admin-password
Normal file
0
influxdb/.env.influxdb2-admin-password
Normal file
1
influxdb/.env.influxdb2-admin-token
Normal file
1
influxdb/.env.influxdb2-admin-token
Normal file
@@ -0,0 +1 @@
|
|||||||
|
l4c1j4yd33Du5lo
|
||||||
0
influxdb/.env.influxdb2-admin-username
Normal file
0
influxdb/.env.influxdb2-admin-username
Normal file
38
influxdb/docker-compose.yml
Executable file
38
influxdb/docker-compose.yml
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
influxdb:
|
||||||
|
ports:
|
||||||
|
- 8086:8086
|
||||||
|
volumes:
|
||||||
|
- /share/docker_data/influxdb/data:/var/lib/influxdb2
|
||||||
|
- /share/docker_data/influxdb/config:/etc/influxdb2
|
||||||
|
secrets:
|
||||||
|
- influxdb2-admin-username
|
||||||
|
- influxdb2-admin-password
|
||||||
|
- influxdb2-admin-token
|
||||||
|
environment:
|
||||||
|
- DOCKER_INFLUXDB_INIT_MODE=setup
|
||||||
|
- DOCKER_INFLUXDB_INIT_USERNAME=ha
|
||||||
|
- DOCKER_INFLUXDB_INIT_PASSWORD=haHAhaHA
|
||||||
|
- DOCKER_INFLUXDB_INIT_ORG=ha
|
||||||
|
- DOCKER_INFLUXDB_INIT_BUCKET=ha
|
||||||
|
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=mytoken123
|
||||||
|
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE=/run/secrets/influxdb2-admin-token
|
||||||
|
image: ${DOCKER_REGISTRY:-}influxdb:2
|
||||||
|
restart: ${RESTART:-unless-stopped}
|
||||||
|
healthcheck:
|
||||||
|
test: "echo test > /var/lib/influxdb2/hc || exit 1"
|
||||||
|
interval: 10s
|
||||||
|
timeout: 3s
|
||||||
|
retries: 2
|
||||||
|
labels:
|
||||||
|
com.centurylinklabs.watchtower.enable: true
|
||||||
|
wud.watch: true
|
||||||
|
wud.watch.digest: true
|
||||||
|
secrets:
|
||||||
|
influxdb2-admin-username:
|
||||||
|
file: .env.influxdb2-admin-username
|
||||||
|
influxdb2-admin-password:
|
||||||
|
file: .env.influxdb2-admin-password
|
||||||
|
influxdb2-admin-token:
|
||||||
|
file: .env.influxdb2-admin-token
|
||||||
Reference in New Issue
Block a user