Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ services:
environment:
NODE_ENV: development
WEB_ORIGIN: http://localhost:5173
# Dev-only fallback secrets so `docker compose up` works without a .env.
# Exported vars or a local .env still override these. NOT a prod concern:
# CI/e2e/prod load the base compose WITHOUT this override (see Makefile
# E2E_FILES/TEST_FILES), where these vars have no default and a real
# secret must be supplied.
JWT_ACCESS_SECRET: ${JWT_ACCESS_SECRET:-dev_local_access_secret_min_32_chars}
JWT_REFRESH_SECRET: ${JWT_REFRESH_SECRET:-dev_local_refresh_secret_min_32_chars}
ports:
- "3000:3000"

Expand All @@ -31,5 +38,9 @@ services:
environment:
VITE_PROXY_TARGET: http://backend:3000
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"]
# Dev serves on 5173 (Vite). NOTE: Compose merges `ports` additively, so the
# base service's 8080 publish is also inherited here. If host port 8080 is
# taken (e.g. another local stack), set FRONTEND_PORT in a local .env to move
# that mapping off 8080 — Compose < 2.24 has no way to drop an inherited port.
ports:
- "5173:5173"
Loading