# Copy to .env next to docker-compose.yml and edit. Compose reads it automatically; # git ignores .env. Every value here is optional — the defaults in docker-compose.yml # are what you get without it. # --- Ports on your machine ----------------------------------------------------------- # Container-side ports are fixed (API 5000, nginx 80); only these move. #LADOSE_WEB_PORT=8080 #LADOSE_API_PORT=5000 # --- Database ------------------------------------------------------------------------ # Overrides ConnectionStrings:DbContext from LaDOSE.Api/appsettings.json. The stack has # no Postgres of its own, so this has to point at a reachable server. # # Postgres on the machine running the containers: #LADOSE_DB_CONNECTION=Host=host.docker.internal;Username=tom;Password=tom;Database=ladoseapi # # Postgres elsewhere on the LAN — check the name resolves *inside* the container # (`docker compose run --rm api getent hosts kafka.local`) and use the IP if it does not: #LADOSE_DB_CONNECTION=Host=kafka.local;Username=tom;Password=tom;Database=ladoseapi # # Sql/dump_20240316.sql then Sql/2026-08-05_roles.sql populate an empty database. # --- Secrets ------------------------------------------------------------------------- # appsettings.json carries placeholders for these. Any value works for JWT locally, but # it must be at least 32 characters: Startup.cs feeds it to HMAC-SHA256 as raw ASCII. #LADOSE_JWT_SECRET=dev-only-secret-not-for-any-deployed-environment #LADOSE_SMASH_API_KEY= #LADOSE_CHALLONGE_API_KEY= # --- Frontend ------------------------------------------------------------------------ # Only needed if the API is not on http://localhost:${LADOSE_API_PORT}. Resolved by the # browser, so container names like http://api:5000 will not work. #LADOSE_API_BASE_URL=http://localhost:5000