added docker compose for dbms

This commit is contained in:
Andrei Stoica 2024-01-24 23:13:13 -05:00
parent d5899d3a75
commit b6ff046116
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
tmp/
# ---> Python
# Byte-compiled / optimized / DLL files
__pycache__/

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
services:
db:
image: postgres
volumes:
- ./tmp/${COMPOSE_PROJECT_NAME}/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- "${POSTGRES_PORT}:5432"