Make RP_ID and ORIGIN configurable via environment variables in docker-compose.yml
This commit is contained in:
+7
-1
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user