Closed asifshiraz closed 3 months ago
You have a few issues here. First, the kratos-postgres volume should be mounted on the postgresd container, not the kratos containers. If you based this on the quickstart.yml, the sqlite volumes are shared between the kratos containers because sqlite is based on local files.
Second, you should look at: https://docs.docker.com/compose/startup-order/ depends_on by default only deals with execution order. In this case, the logs show that kratos is starting before kratos-migration finishes. A better solution is probably to have:
kratos:
depends_on:
kratos_migrate:
condition: service_completed_successfully
so that kratos waits for the migration to complete before trying to run.
Thanks. That fixed it
Preflight checklist
Ory Network Project
No response
Describe the bug
When running in docker, the messages show errors related to schema migration and courier tables
Reproducing the bug
docker compose up
with the contents as in "Relevant configuration" sectionDidn't think its related to the kratos.yml config file, but I can share if needed after editing the identifiers out.
Relevant log output
Relevant configuration
Version
1.2.0
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker Compose
Additional Context
No response