# Compass / NHS — service environment (EXAMPLE). # # Copy to environment.d/school-service.env and fill the secrets in. The real # file is gitignored; never commit it. Generate values with: # docker run --rm --entrypoint /app/school compass-teams-nhs/school:0.1.0-phase1 gen-secret # docker run --rm --entrypoint /app/school compass-teams-nhs/school:0.1.0-phase1 hash-password 'the-password' # Listen address inside the container. The host maps 8792 -> 8792. SCHOOL_ADDR=:8792 # SQLite database in the named volume. SCHOOL_DB_PATH=/data/school.db # Signs the session cookie. Required, >= 16 characters. Secret. SCHOOL_SESSION_SECRET=change-me-32-bytes-of-random # The single dashboard login (Sam). Prefer the bcrypt hash over the plaintext. SCHOOL_ADMIN_USERNAME=sam SCHOOL_ADMIN_PASSWORD_HASH= SCHOOL_ADMIN_PASSWORD= # Keep true behind HTTPS (Caddy terminates TLS). SCHOOL_COOKIE_SECURE=true SCHOOL_SESSION_TTL=12h # Family timezone for due dates and briefs. SCHOOL_TIMEZONE=Australia/Sydney SCHOOL_LOG_LEVEL=info SCHOOL_APP_ENV=production