Add docker-compose file for PostgreSQL service

Introduces a docker-compose.yaml file to set up a PostgreSQL container named "neptune-db". Configures the container with environment variables and volumes for persistent data storage.
This commit is contained in:
Mathis H (Avnyr) 2024-10-31 11:41:42 +01:00
parent 6d59fd8c60
commit 0fb7c3e288
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

14
docker-compose.yaml Normal file
View File

@ -0,0 +1,14 @@
services:
database:
container_name: "neptune-db"
image: 'postgres:latest'
env_file:
- .env
ports:
- "${POSTGRES_PORT}:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
volumes:
- './db-data/:/var/lib/postgresql/data/'