add PostgreSQL
This commit is contained in:
11
README.md
11
README.md
@@ -51,3 +51,14 @@ DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: influxdbToken==
|
|||||||
DOCKER_INFLUXDB_INIT_ORG: hlaeja_ltd
|
DOCKER_INFLUXDB_INIT_ORG: hlaeja_ltd
|
||||||
DOCKER_INFLUXDB_INIT_BUCKET: device-data
|
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
|
||||||
|
```
|
||||||
|
|||||||
15
compose.yml
15
compose.yml
@@ -7,6 +7,7 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
influx-config:
|
influx-config:
|
||||||
influx-data:
|
influx-data:
|
||||||
|
postgres:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
@@ -40,3 +41,17 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- influx-data:/var/lib/influxdb2
|
- influx-data:/var/lib/influxdb2
|
||||||
- influx-config:/etc/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
|
||||||
|
|||||||
Reference in New Issue
Block a user