Make RP_ID and ORIGIN configurable via environment variables in docker-compose.yml

This commit is contained in:
2026-05-28 21:02:35 +02:00
parent 20ff2a0baa
commit 648a0d6adc
2 changed files with 9 additions and 3 deletions
+7 -1
View File
@@ -1 +1,7 @@
OpenWeatherMapAPIKey=<owm_api_key>
OpenWeatherMapAPIKey=<owm_api_key>
# Passkey configuration (WebAuthn Relying Party ID and Origin)
# For local dev: localhost and http://localhost
# For production: e.g. kapteins-daagbok.eu and https://kapteins-daagbok.eu
RP_ID=localhost
ORIGIN=http://localhost
+2 -2
View File
@@ -24,8 +24,8 @@ services:
environment:
PORT: 5000
DATABASE_URL: "postgresql://postgres:postgres@db:5432/daagbox?schema=public"
RP_ID: localhost
ORIGIN: http://localhost
RP_ID: ${RP_ID:-localhost}
ORIGIN: ${ORIGIN:-http://localhost}
command: sh -c "npx prisma db push && node dist/index.js"
depends_on:
db: