Docker compose error
Shows how to fix docker compose error. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
cd docker && cp.env.example.env && docker compose up fails: the jawn/valhalla build context in docker-compose.yml doesn't match the repo's directory layout (missing shared directory context), plus unset MINIO env vars.
Steps
- Community workaround (koshyviv): in
./docker/docker-compose.ymlchange the jawn build context to..withdockerfile: valhalla/dockerfile, and in./valhalla/dockerfilebuild with the parent directory as context (COPY ./valhalla/jawn/... and ./shared ... with the corrected paths). Maintainer chitalian confirmed and linked PR #3195 as the repo-side fix.
When to use
Use this skill when you run into "Docker compose error".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.