diff --git a/Dockerfile b/Dockerfile index a46f913..ccf4332 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,8 +80,8 @@ else fi fi -echo "Database setup complete. Starting application on port 5173..." -export PORT=5173 +echo "Database setup complete. Starting application on port 3000..." +export PORT=3000 exec npx remix-serve ./build/server/index.js EOF @@ -89,14 +89,14 @@ RUN chmod +x /app/start.sh USER remix -EXPOSE 5173 +EXPOSE 3000 ENV NODE_ENV=production -ENV PORT=5173 +ENV PORT=3000 # Health check with wget (more reliable than node) HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:5173/health || exit 1 + CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1 # Use dumb-init to handle signals properly ENTRYPOINT ["dumb-init", "--"] diff --git a/docker-compose.dokploy.yml b/docker-compose.dokploy.yml index f946ef4..b7e4dc3 100644 --- a/docker-compose.dokploy.yml +++ b/docker-compose.dokploy.yml @@ -9,10 +9,10 @@ services: container_name: phosphat-report-app restart: unless-stopped ports: - - "${APP_PORT:-5173}:5173" + - "${APP_PORT:-5173}:3000" environment: - NODE_ENV=production - - PORT=5173 + - PORT=3000 - DATABASE_URL=file:/app/data/production.db - SESSION_SECRET=${SESSION_SECRET} - SUPER_ADMIN=${SUPER_ADMIN} @@ -31,7 +31,7 @@ services: networks: - app_network healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5173/health", "||", "exit", "1"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health", "||", "exit", "1"] interval: 30s timeout: 10s retries: 3 diff --git a/docker-compose.yml b/docker-compose.yml index f946ef4..b7e4dc3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,10 +9,10 @@ services: container_name: phosphat-report-app restart: unless-stopped ports: - - "${APP_PORT:-5173}:5173" + - "${APP_PORT:-5173}:3000" environment: - NODE_ENV=production - - PORT=5173 + - PORT=3000 - DATABASE_URL=file:/app/data/production.db - SESSION_SECRET=${SESSION_SECRET} - SUPER_ADMIN=${SUPER_ADMIN} @@ -31,7 +31,7 @@ services: networks: - app_network healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5173/health", "||", "exit", "1"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health", "||", "exit", "1"] interval: 30s timeout: 10s retries: 3