add influxdb

This commit is contained in:
willemserruys
2022-11-22 23:11:34 +01:00
parent 73a33c0621
commit 4dce8e63c1
2 changed files with 27 additions and 0 deletions

View File

@@ -8,3 +8,12 @@ MARIADB_ROOT_PASSWORD=testing
MARIADB_DATABASE=homeassistant MARIADB_DATABASE=homeassistant
MARIADB_USER=homeassistant_user MARIADB_USER=homeassistant_user
MARIADB_PASSWORD=homeassistant_pw MARIADB_PASSWORD=homeassistant_pw
GF_SECURITY_ADMIN_USER=test
GF_SECURITY_ADMIN_PASSWORD=test
GF_USERS_ALLOW_SIGN_UP=false
DOCKER_INFLUXDB_INIT_USERNAME=homeassistant
DOCKER_INFLUXDB_INIT_PASSWORD=homeassistant
DOCKER_INFLUXDB_INIT_ORG=homeassistant
DOCKER_INFLUXDB_INIT_BUCKET=homeassistant

View File

@@ -75,3 +75,21 @@ services:
env_file: env_file:
- .env - .env
- .env.production - .env.production
influxdb:
container_name: influxdb
image: influxdb
restart: unless-stopped
ports:
- ${INTERNAL_IP}:8086:8086/tcp # So we can access the WebUI
environment:
- TZ=Europe/Brussels
- DOCKER_INFLUXDB_INIT_MODE=setup
env_file:
- .env.production
volumes:
- /home/willem/influxdb/data:/var/lib/influxdb2
- /home/willem/influxdb/config/:/etc/influxdb2
ulimits:
nofile:
soft: 32768
hard: 32768