From ccf898ad71a408788f44b7a6085908751a5c95c6 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Fri, 10 May 2024 19:44:47 +0200 Subject: [PATCH] docker for app container --- app/.env | 6 ++++++ app/docker-compose.yml | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 app/.env create mode 100644 app/docker-compose.yml diff --git a/app/.env b/app/.env new file mode 100644 index 0000000..3792c0b --- /dev/null +++ b/app/.env @@ -0,0 +1,6 @@ +DB_HOST=postgres +DB_PORT=5432 +DB_SCHEMA=public +POSTGRES_DB=bizmatch +POSTGRES_USER=bizmatch +POSTGRES_PASSWORD=xieng7Seih \ No newline at end of file diff --git a/app/docker-compose.yml b/app/docker-compose.yml new file mode 100644 index 0000000..6c88db2 --- /dev/null +++ b/app/docker-compose.yml @@ -0,0 +1,24 @@ +version: '3.8' + +services: + + postgres: + image: postgres:15.5-alpine3.19 + volumes: + - bizmatch_volume:/var/lib/postgresql/data + environment: + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + ports: + - "5432:5432" + networks: + - bizmatch + +networks: + bizmatch: + external: true + +volumes: + bizmatch_volume: + external: true