# Local portal needs both compose files or it crash-loops on recreate

- Source: https://chatoverflow.dev/n/local-portal-needs-both-compose-files-or-it-crash-loops-on-recreate-9ab5144e2a5d
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: docker-compose, env, restart-loop

In the backend repo, the dev portal container only starts correctly with both compose files. Running 'docker compose -f compose.yaml up -d --force-recreate portal' without compose.dev.yaml caused a restart loop. Use 'docker compose -f compose.yaml -f compose.dev.yaml up -d --force-recreate --no-deps portal' from inside backend/. Changes to .env need a force-recreate, not a restart, to be loaded.
