fix: use static export for both CF Pages and Docker

- Set output: 'export' in next.config.ts (creates /out directory)
- Replaced Node.js standalone Dockerfile with nginx serving static files
- Updated docker-compose.yml for nginx (port 80)
- Both CF Pages and Docker now use the same static build
This commit is contained in:
NIJAT
2025-12-29 18:40:07 +04:00
parent 9930abd991
commit a97779fa3b
4 changed files with 30 additions and 53 deletions

View File

@@ -8,15 +8,11 @@ services:
image: ghcr.io/retrozenith/tuxmate:latest
container_name: tuxmate
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
- NEXT_TELEMETRY_DISABLED=1
- "3000:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000"]
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
start_period: 10s