From 968bb9e757422a5854bb993c907e238c6c4cf2b5 Mon Sep 17 00:00:00 2001 From: David Rochow Date: Fri, 28 Jun 2024 13:41:21 +0200 Subject: [PATCH] fix(compose): fixed docker compose for local environment setup --- .test.env | 4 +++- Makefile | 2 +- docker-compose.yaml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.test.env b/.test.env index a3dd0148..f553e18e 100644 --- a/.test.env +++ b/.test.env @@ -14,4 +14,6 @@ DOCKER_CREDENTIAL_STORE=docker-credential-desktop LOG_PRETTY_PRINT=true -LOCAL_TEST_DB=true \ No newline at end of file +LOCAL_TEST_DB=true + +SEED_MODE=false \ No newline at end of file diff --git a/Makefile b/Makefile index b4ea16bb..bff43c2c 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ start: stop # Start all container. This expects the heureka bin to be amd64 because the image in the docker-compose is amd64 start-all-%: stop - docker-compose --profile db --profile heureka up + docker-compose --profile db --profile heureka up --build --force-recreate stop: @rm -rf ./.db/data diff --git a/docker-compose.yaml b/docker-compose.yaml index f741e18b..8da2d24c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -42,6 +42,7 @@ services: DB_ROOT_PASSWORD: ${DB_PASSWORD} DB_NAME: ${DB_NAME} DB_SCHEMA: /app_sqlschema/schema.sql + SEED_MODE: ${SEED_MODE} volumes: - ./internal/database/mariadb/init/schema.sql:/app_sqlschema/schema.sql depends_on: