From 276e4d96a1691bd17ce15260f660e758c2600274 Mon Sep 17 00:00:00 2001 From: yznahmad Date: Thu, 24 Jul 2025 14:24:39 +0300 Subject: [PATCH] upload 2 3 --- .env.dokploy | 2 +- .env.production | 2 +- Dockerfile | 7 ++++--- docker-compose.dokploy.yml | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.env.dokploy b/.env.dokploy index e7ffc8c..825132f 100644 --- a/.env.dokploy +++ b/.env.dokploy @@ -2,7 +2,7 @@ # Use these values in your Dokploy environment variables section NODE_ENV=production -APP_PORT=3000 +APP_PORT=5173 # Database (uses Docker volume) DATABASE_URL=file:/app/data/production.db diff --git a/.env.production b/.env.production index 38dcf20..5989d3e 100644 --- a/.env.production +++ b/.env.production @@ -4,7 +4,7 @@ # Application Settings NODE_ENV=production -APP_PORT=3000 +APP_PORT=5173 DOMAIN=your-domain.com # Database diff --git a/Dockerfile b/Dockerfile index 32e69e3..a46f913 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,8 +80,9 @@ else fi fi -echo "Database setup complete. Starting application..." -exec npm start +echo "Database setup complete. Starting application on port 5173..." +export PORT=5173 +exec npx remix-serve ./build/server/index.js EOF RUN chmod +x /app/start.sh @@ -95,7 +96,7 @@ ENV PORT=5173 # 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:3000/health || exit 1 + CMD wget --no-verbose --tries=1 --spider http://localhost:5173/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 3834455..f946ef4 100644 --- a/docker-compose.dokploy.yml +++ b/docker-compose.dokploy.yml @@ -31,7 +31,7 @@ services: networks: - app_network healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health", "||", "exit", "1"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5173/health", "||", "exit", "1"] interval: 30s timeout: 10s retries: 3