From b6ff046116bbb4a85864964f4281b1ab76defc6e Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Wed, 24 Jan 2024 23:13:13 -0500 Subject: [PATCH] added docker compose for dbms --- .gitignore | 1 + docker-compose.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index f8b73e7..272450d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +tmp/ # ---> Python # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..836a83a --- /dev/null +++ b/docker-compose.yml @@ -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"