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:
2026-01-30 11:29:17 -05:00
parent 4d14f9ba9c
commit fee8fe2551
30 changed files with 899 additions and 304 deletions

View File

@@ -10,11 +10,6 @@ services:
container_name: pokedex-frontend
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
@@ -45,12 +40,10 @@ services:
ports:
- '3099:3000'
environment:
- DEPLOYMENT_TARGET=production
- NODE_ENV=production
- PORT=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}
# OAuth credentials loaded from .env file
- FRONTEND_URL=https://app.pokedex.online
env_file:
- ./server/.env
volumes: