Skip to content

Commit 4012636

Browse files
committed
fix: pass --env-file to docker compose so .env is actually read
docker compose -f infra/docker-compose.yml sets the project directory to infra/, so it looks for .env in infra/.env (which doesn't exist). The .env at workspace root was never read — all ${VAR:-default} substitutions in docker-compose.yml silently used hardcoded defaults. This is why M87_BOOTSTRAP_KEY always resolved to "m87-dev-key-change-me" inside the container regardless of what .env contained. Fix: --env-file .env explicitly points docker compose at the workspace root .env file. https://claude.ai/code/session_01DAuwxwQQoyHFHbmumedqob
1 parent 227b87a commit 4012636

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: Start services
6464
run: |
65-
docker compose -f infra/docker-compose.yml up -d --build
65+
docker compose --env-file .env -f infra/docker-compose.yml up -d --build
6666
sleep 10
6767
6868
- name: Wait for API health

0 commit comments

Comments
 (0)