upload 2 3
This commit is contained in:
parent
24dd33764f
commit
276e4d96a1
@ -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
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
# Application Settings
|
||||
NODE_ENV=production
|
||||
APP_PORT=3000
|
||||
APP_PORT=5173
|
||||
DOMAIN=your-domain.com
|
||||
|
||||
# Database
|
||||
|
||||
@ -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", "--"]
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user