Add Docker Compose configuration and environment files for local and production setups
- Created docker-compose.docker-local.yml for local testing of frontend and backend services. - Added .env.development for development environment configuration. - Introduced .env.docker-local for local Docker environment settings. - Added .env.production for production environment configuration for Synology deployment.
This commit is contained in:
33
code/websites/pokedex.online/server/.env.docker-local
Normal file
33
code/websites/pokedex.online/server/.env.docker-local
Normal file
@@ -0,0 +1,33 @@
|
||||
# ====================================================================
|
||||
# BACKEND LOCAL DOCKER ENVIRONMENT (localhost:3099)
|
||||
# ====================================================================
|
||||
# Used in docker-compose.docker-local.yml for local production testing
|
||||
# Supports frontend at localhost:8099
|
||||
# ====================================================================
|
||||
|
||||
# Deployment Target
|
||||
DEPLOYMENT_TARGET=docker-local
|
||||
|
||||
# Server Configuration
|
||||
NODE_ENV=production
|
||||
PORT=3000
|
||||
|
||||
# Frontend URL (for CORS)
|
||||
FRONTEND_URL=http://localhost:8099
|
||||
|
||||
# Discord OAuth Configuration
|
||||
VITE_DISCORD_CLIENT_ID=1466544972059775223
|
||||
DISCORD_CLIENT_SECRET=dMRPAmWxXKQdWOKzgkPbcdsHNCifqtYV
|
||||
DISCORD_REDIRECT_URI=http://localhost:8099/oauth/callback
|
||||
VITE_DISCORD_REDIRECT_URI=http://localhost:8099/oauth/callback
|
||||
|
||||
# Challonge OAuth Configuration
|
||||
CHALLONGE_CLIENT_ID=9d40113bdfd802c6fb01137fa9041b23342ce4f100caedad6dee865a486662df
|
||||
CHALLONGE_CLIENT_SECRET=5dc805e41001281c2415b5ffd6b85a7855fc08b6019d9be2907fdb85ab2d56fc
|
||||
CHALLONGE_REDIRECT_URI=http://localhost:8099/oauth/callback
|
||||
|
||||
# Discord User Permissions
|
||||
DISCORD_ADMIN_USERS=.fraggin
|
||||
|
||||
# Session Security
|
||||
SESSION_SECRET=local-docker-session-secret-change-for-production
|
||||
Reference in New Issue
Block a user