mirror of
https://github.com/abusoww/tuxmate.git
synced 2026-04-17 21:53:12 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user