From 4f7e151ebca170986f49e575188827b7f558b0cc Mon Sep 17 00:00:00 2001 From: Mika Bomm Date: Thu, 29 Aug 2024 22:02:56 +0200 Subject: [PATCH] init version for docker-compose.yml --- .env.example | 2 ++ docker-compose.yml | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .env.example create mode 100644 docker-compose.yml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..44192bc --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +DB_USER= +DB_PASSWORD= \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9d71aba --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +services: + db: + container_name: postgres + image: postgres + environment: + POSTGRES_USER: ${DB_USER} + POSTGRES_PASSWORD: ${DB_PASSWORD} + PGDATA: /data/postgres + volumes: + - db:/data/postgres + ports: + - "5332:5432" + networks: + - db + env_file: + - .env + restart: unless-stopped + +networks: + db: + driver: bridge + +volumes: + db: \ No newline at end of file