Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add keycloak migrations container to minimal #230

Merged
merged 3 commits into from
Mar 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions test/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
networks:
- default
broker:
image: testlagoon/broker-single:main
image: testlagoon/broker:main
restart: on-failure
networks:
- default
Expand All @@ -18,6 +18,16 @@ services:
depends_on:
- api-db
- keycloak
api-lagoon-migrations:
image: testlagoon/api:main
command: sh -c "./node_modules/.bin/tsc && node -r dotenv-extended/config dist/migrations/lagoon/migration.js"
environment:
- KEYCLOAK_URL=http://172.17.0.1:38088
depends_on:
api-init:
condition: service_completed_successfully # don't start the lagoon migrations until the db migrations is completed
keycloak:
condition: service_started
api:
image: testlagoon/api:main
ports:
Expand All @@ -35,7 +45,7 @@ services:
- S3_BAAS_SECRET_ACCESS_KEY=minio123
- CONSOLE_LOGGING_LEVEL=trace
depends_on:
- api-init
- api-lagoon-migrations
api-redis:
image: testlagoon/api-redis:main
keycloak:
Expand Down