From 4dce8e63c1762ad28af7f44b575305b945a6a8dc Mon Sep 17 00:00:00 2001 From: willemserruys Date: Tue, 22 Nov 2022 23:11:34 +0100 Subject: [PATCH] add influxdb --- home-server/.env | 9 +++++++++ home-server/docker-compose.yml | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/home-server/.env b/home-server/.env index 62502c9..1ee58ec 100644 --- a/home-server/.env +++ b/home-server/.env @@ -8,3 +8,12 @@ MARIADB_ROOT_PASSWORD=testing MARIADB_DATABASE=homeassistant MARIADB_USER=homeassistant_user 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 diff --git a/home-server/docker-compose.yml b/home-server/docker-compose.yml index 4f45c6e..d979682 100644 --- a/home-server/docker-compose.yml +++ b/home-server/docker-compose.yml @@ -75,3 +75,21 @@ services: env_file: - .env - .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