Files
rfid-database/docker-compose.yml
T
Nick TrochalakisandCursor Agent 6d76fecde9 Fix OIDC: enable from runtime AUTH_OIDC_* (no NEXT_PUBLIC flag) (#5)
The SSO button required NEXT_PUBLIC_AUTH_OIDC_ENABLED, which is baked
at build time and silently fails under Docker runtime env. Drive the
login button from server-side AUTH_OIDC_* instead, and document IdP
redirect URI + AUTH_URL setup.

Co-authored-by: Cursor Agent <[email protected]>
2026-08-24 00:13:51 +00:00

36 lines
931 B
YAML

services:
rfid-database:
build:
context: .
dockerfile: Dockerfile
image: rfid-database:local
container_name: rfid-database
restart: unless-stopped
ports:
- "${RFID_PORT:-3000}:3000"
env_file:
- .env
environment:
NODE_ENV: production
RFID_DB_PATH: /data/rfid.db
PORT: "3000"
HOSTNAME: 0.0.0.0
AUTH_TRUST_HOST: "true"
# OIDC: set AUTH_OIDC_ISSUER / CLIENT_ID / CLIENT_SECRET (and AUTH_URL)
# in .env — the login page picks them up at runtime.
# Optional bootstrap (only creates if missing):
# CREATE_USER_EMAIL: [email protected]
# CREATE_USER_PASSWORD: change-me
# CREATE_USER_NAME: Admin
volumes:
- rfid-data:/data
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:3000/login"]
interval: 30s
timeout: 5s
retries: 3
start_period: 25s
volumes:
rfid-data: