diff --git a/README.md b/README.md index 4861c4b..f707b75 100644 --- a/README.md +++ b/README.md @@ -51,3 +51,14 @@ DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: influxdbToken== DOCKER_INFLUXDB_INIT_ORG: hlaeja_ltd DOCKER_INFLUXDB_INIT_BUCKET: device-data ``` + +### PostgreSQL + +PostgreSQL is a powerful, open-source relational database management system (RDBMS). Known for its reliability and advanced features, it supports SQL for querying and managing data, along with extensive functionality for scalability and extensibility. + +#### Environment + +```text +POSTGRES_USER: postgres +POSTGRES_PASSWORD : password +``` diff --git a/compose.yml b/compose.yml index ce2fea8..89c8d7c 100644 --- a/compose.yml +++ b/compose.yml @@ -7,6 +7,7 @@ networks: volumes: influx-config: influx-data: + postgres: services: @@ -40,3 +41,17 @@ services: volumes: - influx-data:/var/lib/influxdb2 - influx-config:/etc/influxdb2 + + postgres: + image: postgres:17.1-alpine + container_name: PostgreSQL + restart: unless-stopped + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD : password + ports: + - "5432:5432" + networks: + - develop + volumes: + - postgres:/var/lib/postgresql/data