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

@@ -8,30 +8,27 @@
],
"scripts": {
"dev": "vite",
"build": "npm run build:frontend && npm run build:backend",
"dev:full": "concurrently \"npm run dev\" \"npm run oauth-proxy\"",
"oauth-proxy": "npm run dev --workspace=server",
"preview": "vite preview",
"build:frontend": "vite build",
"build:backend": "npm run build --workspace=server",
"build:verify": "node scripts/verify-build.js",
"preview": "vite preview",
"oauth-proxy": "npm run dev --workspace=server",
"dev:full": "concurrently \"npm run dev\" \"npm run oauth-proxy\"",
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"test:run": "vitest run",
"test:all": "npm run test:run && npm run test:run --workspace=server",
"docker:local": "docker compose -f docker-compose.docker-local.yml up -d --build",
"docker:local:down": "docker compose -f docker-compose.docker-local.yml down",
"docker:local:logs": "docker compose -f docker-compose.docker-local.yml logs -f",
"docker:prod": "docker compose -f docker-compose.production.yml up -d --build",
"docker:prod:down": "docker compose -f docker-compose.production.yml down",
"docker:prod:logs": "docker compose -f docker-compose.production.yml logs -f",
"deploy:local": "./deploy.sh --target local",
"deploy:prod": "./deploy.sh --target production",
"install:all": "npm install && npm install --workspace=server",
"lint": "echo 'Add ESLint when ready'",
"docker:build": "docker compose -f docker-compose.production.yml build",
"docker:up": "docker compose -f docker-compose.production.yml up -d",
"docker:down": "docker compose -f docker-compose.production.yml down",
"docker:logs": "docker compose -f docker-compose.production.yml logs -f",
"deploy": "./deploy.sh",
"deploy:internal": "./deploy.sh --target internal",
"deploy:external": "./deploy.sh --target external",
"deploy:dry-run": "./deploy.sh --dry-run",
"deploy:quick": "./deploy.sh --skip-tests --no-backup",
"deploy:manual": "node ../../utils/deploy-pokedex.js"
"lint": "echo 'Add ESLint when ready'"
},
"dependencies": {
"highlight.js": "^11.11.1",