# Local proxy stack, layered over compose.yml + compose.dev.yml by # `make dev-local`. Traefik joins the external `proxy` network and serves # plain HTTP on *.${DOMAIN} (default *.localhost). # Everything here is reachable through Traefik on *.${DOMAIN}, so the host ports # compose.dev.yml publishes are dropped: they add nothing and make the whole # stack fail to start whenever something else on the host already holds one. services: proxy: networks: - proxy - default ports: !override - "80:80" db: ports: !reset [] adminer: ports: !reset [] mailcatcher: ports: !reset [] backend: ports: !reset [] environment: - ENVIRONMENT=local - FRONTEND_HOST=http://app.${DOMAIN:-localhost} # Last entry: the standalone Vite dev server (`make dev-frontend`), which # talks to this backend rather than running one of its own. - BACKEND_CORS_ORIGINS=http://${DOMAIN:-localhost},http://app.${DOMAIN:-localhost},http://localhost:5173 networks: # External reverse-proxy network. Created by `make init`. proxy: external: true