Skip to content

Commit

Permalink
fix(compose): fixed docker compose for local environment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
drochow committed Jun 28, 2024
1 parent 7bd2532 commit 968bb9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .test.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ DOCKER_CREDENTIAL_STORE=docker-credential-desktop

LOG_PRETTY_PRINT=true

LOCAL_TEST_DB=true
LOCAL_TEST_DB=true

SEED_MODE=false
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 968bb9e

Please sign in to comment.