services: # Passkey auth + per-user data (Node API, stores JSON under ./data) api: image: ghcr.io/duartesantos8/opengym-api:latest restart: unless-stopped environment: PORT: 3000 DATA_DIR: /data TRUST_PROXY: ${TRUST_PROXY:-1} RP_ID: ${RP_ID:?Variable is required and must be set} ORIGIN: ${ORIGIN:?Variable is required and must be set} RP_NAME: ${RP_NAME:-openGym} FIRST_USER_ADMIN: ${FIRST_USER_ADMIN:-1} ADMIN_UIDS: ${ADMIN_UIDS:-} INVITE_ONLY: ${INVITE_ONLY:-0} ALLOW_GUEST: ${ALLOW_GUEST:-0} PASSWORD_LOGIN: ${PASSWORD_LOGIN:-0} VAPID_SUBJECT: ${VAPID_SUBJECT:-} volumes: - ${DATA_PATH:-./data}:/data # users, passkeys, session secret, uploads - BACK THIS UP # React frontend served by nginx, proxies /api -> api (single origin for passkeys) web: image: ghcr.io/duartesantos8/opengym-web:latest restart: unless-stopped depends_on: - api ports: - "${WEB_PORT:-8095}:80" environment: NGINX_PORT: 80 BACKEND: api PORT: 3000 RESOLVER: 127.0.0.11 CF_CONNECTING_IP: ${CF_CONNECTING_IP:-} MEDIA_UPLOAD_MAX: ${MEDIA_UPLOAD_MAX:-48m}