From 72c060bc3eb01019f506250507400ad444f50827 Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Thu, 2 May 2024 16:34:55 +0200 Subject: [PATCH] :technologist: split dockercompose into dev and deploy Signed-off-by: Sindre Kjelsrud --- ...-compose.yml => docker-compose.deploy.yml} | 0 backend/docker-compose.dev.yml | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+) rename backend/{docker-compose.yml => docker-compose.deploy.yml} (100%) create mode 100644 backend/docker-compose.dev.yml diff --git a/backend/docker-compose.yml b/backend/docker-compose.deploy.yml similarity index 100% rename from backend/docker-compose.yml rename to backend/docker-compose.deploy.yml diff --git a/backend/docker-compose.dev.yml b/backend/docker-compose.dev.yml new file mode 100644 index 0000000..e45946f --- /dev/null +++ b/backend/docker-compose.dev.yml @@ -0,0 +1,20 @@ +version: "3.9" + +services: + postgres: + image: postgres:14-alpine + ports: + - 5432:5432 + volumes: + - ~/apps/postgres:/var/lib/postgresql/data + env_file: + - .env + ginapi: + build: + context: . + dockerfile: Dockerfile + image: helseveileder + ports: + - 8080:8080 + depends_on: + - postgres