🔧 Add Discord OAuth environment variables to production Docker Compose configuration
This commit is contained in:
@@ -11,6 +11,10 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- '8099:80'
|
- '8099:80'
|
||||||
- '8443:443'
|
- '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:
|
depends_on:
|
||||||
backend:
|
backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -39,7 +43,10 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: pokedex-backend
|
container_name: pokedex-backend
|
||||||
ports:
|
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:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
|
|||||||
Reference in New Issue
Block a user