Is there a way to prevent the migration containers...
# ory-selfhosting
l
Is there a way to prevent the migration containers from exiting on completion in docker compose? I'm using the
--exit-code-from
flag for running tests locally and any migration container aborting is causing the tests to prematurely exit.
Found a solution, simply override the hydra entrytpoint in docker-compose when running integration tests:
Copy code
ash -c "hydra migrate sql -e --yes; hydra serve all --dangerous-force-http"
m
thanks for sharing your solution, will see to add it to the docs 🙂
👍 1