Files
PleinR/.env.example
T
Claude 718a704868 Rend AUTH_SECRET optionnel : génération auto + persistance au déploiement
Le compose ne requiert plus AUTH_SECRET (`:?` retiré). Si la variable est vide,
docker-entrypoint.sh génère un secret aléatoire et le persiste dans le volume
app-data (/app/data/auth_secret), réutilisé aux redémarrages. Surcharge possible
en définissant AUTH_SECRET. Déploiement Portainer sans configuration requise.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XwfhYHzC9hQWPDnQ2p53GL
2026-06-26 16:26:26 +00:00

29 lines
1.1 KiB
Bash

# ---- Database (external Postgres) ----
# When running the app via docker-compose, host is the compose service name
# "postgres" on the internal port 5432 (NOT the published host port).
# For local dev outside Docker against the dockerised Postgres, use
# localhost on the published host port: postgres://pleinr:pleinr@localhost:54329/pleinr
DATABASE_URL=postgres://pleinr:pleinr@postgres:5432/pleinr
# Individual vars consumed by the postgres container in docker-compose.yml
POSTGRES_USER=pleinr
POSTGRES_PASSWORD=pleinr
POSTGRES_DB=pleinr
# ---- Auth.js (NextAuth v5) ----
# Optional with docker-compose: if left unset, the container generates and
# persists one automatically. To set it yourself: openssl rand -base64 32
AUTH_SECRET=
# Public URL of the app (used by Auth.js for callbacks).
# With docker-compose the app is published on host port 8413 by default.
AUTH_URL=http://localhost:8413
# ---- First admin user (created by the seed script) ----
SEED_ADMIN_EMAIL=admin@plein-r.fr
SEED_ADMIN_PASSWORD=changeme123
SEED_ADMIN_NAME=Administrateur Plein R
# ---- App ----
NODE_ENV=production
PORT=3000