diff --git a/README.md b/README.md index 2a192cd..eac27f4 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,20 @@ Plugin containing gradle task and setting used by common, library, and service r ### Common Messages Library containing all internal messages for services. GitHub [Hlæja Common Messages](https://github.com/swordsteel/hlaeja-common-messages) + +## Databases + +### InfluxDB + +InfluxDB is a high-performance time series database designed to handle large volumes of time-stamped data. It is commonly used for monitoring, analytics, and IoT applications, where data points are associated with timestamps (e.g., sensor readings, system metrics). + +#### Environment + +```text +DOCKER_INFLUXDB_INIT_MODE: setup +DOCKER_INFLUXDB_INIT_USERNAME: influx +DOCKER_INFLUXDB_INIT_PASSWORD: password +DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: influxdbToken== +DOCKER_INFLUXDB_INIT_ORG: hlaeja_ltd +DOCKER_INFLUXDB_INIT_BUCKET: device-data +``` diff --git a/compose.yml b/compose.yml index 56b5046..77baf62 100644 --- a/compose.yml +++ b/compose.yml @@ -5,5 +5,26 @@ networks: name: develop volumes: + influx-config: + influx-data: services: + + influxdb: + image: influxdb:2.7.10-alpine + container_name: InfluxDB + restart: unless-stopped + environment: + DOCKER_INFLUXDB_INIT_MODE: setup + DOCKER_INFLUXDB_INIT_USERNAME: influx + DOCKER_INFLUXDB_INIT_PASSWORD: password + DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: influxdbToken== + DOCKER_INFLUXDB_INIT_ORG: hlaeja_ltd + DOCKER_INFLUXDB_INIT_BUCKET: device-data + networks: + - develop + ports: + - "8086:8086" + volumes: + - influx-data:/var/lib/influxdb2 + - influx-config:/etc/influxdb2