# --------------------------------------------------------------------------- # Root .env — consumed by docker-compose ONLY. # # Application configuration lives in apps//.env. This file exists so that # the container images and the local apps agree on ports and credentials. # `pnpm setup` copies every .env.example into place. # --------------------------------------------------------------------------- # --- PostgreSQL ------------------------------------------------------------- # Host ports are deliberately NOT the defaults 5432/6379: a great many machines # already run a local PostgreSQL or Redis, and a shadowed port produces a # baffling "user was denied access" instead of a clear conflict error. Inside # the Docker network the services still listen on their standard ports. POSTGRES_USER=sport POSTGRES_PASSWORD=sport POSTGRES_DB=sport_store POSTGRES_PORT=5433 # --- Redis ------------------------------------------------------------------ REDIS_PORT=6380 # --- Object storage (MinIO locally, Cloudflare R2 in production) ------------ STORAGE_BUCKET=sport-media STORAGE_ACCESS_KEY_ID=sportminio STORAGE_SECRET_ACCESS_KEY=sportminio # --- Public URLs, baked into the frontend builds (`--profile full`) --------- NEXT_PUBLIC_API_URL=http://localhost/api NEXT_PUBLIC_SITE_URL=http://localhost NEXT_PUBLIC_ADMIN_URL=http://admin.localhost