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:
parent
6d59fd8c60
commit
0fb7c3e288
14
docker-compose.yaml
Normal file
14
docker-compose.yaml
Normal 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/'
|
Loading…
x
Reference in New Issue
Block a user