🔧 Add Discord OAuth environment variables to production Docker Compose configuration
This commit is contained in:
@@ -11,6 +11,10 @@ services:
|
||||
ports:
|
||||
- '8099:80'
|
||||
- '8443:443'
|
||||
environment:
|
||||
# Discord OAuth redirect URI (set dynamically by deployment script)
|
||||
- VITE_DISCORD_REDIRECT_URI=${VITE_DISCORD_REDIRECT_URI:-http://localhost:8099/oauth/callback}
|
||||
- VITE_DISCORD_CLIENT_ID=${VITE_DISCORD_CLIENT_ID}
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
@@ -39,7 +43,10 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
container_name: pokedex-backend
|
||||
ports:
|
||||
- '3099:3000'
|
||||
- Discord OAuth Redirect URI (set dynamically by deployment script)
|
||||
- DISCORD_REDIRECT_URI=${DISCORD_REDIRECT_URI:-http://localhost:3099/oauth/callback}
|
||||
- VITE_DISCORD_REDIRECT_URI=${VITE_DISCORD_REDIRECT_URI:-http://localhost:8099/oauth/callback}
|
||||
# '3099:3000'
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
|
||||
Reference in New Issue
Block a user