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
|
# Use these values in your Dokploy environment variables section
|
||||||
|
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
APP_PORT=3000
|
APP_PORT=5173
|
||||||
|
|
||||||
# Database (uses Docker volume)
|
# Database (uses Docker volume)
|
||||||
DATABASE_URL=file:/app/data/production.db
|
DATABASE_URL=file:/app/data/production.db
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# Application Settings
|
# Application Settings
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
APP_PORT=3000
|
APP_PORT=5173
|
||||||
DOMAIN=your-domain.com
|
DOMAIN=your-domain.com
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
|
|||||||
@ -80,8 +80,9 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Database setup complete. Starting application..."
|
echo "Database setup complete. Starting application on port 5173..."
|
||||||
exec npm start
|
export PORT=5173
|
||||||
|
exec npx remix-serve ./build/server/index.js
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
RUN chmod +x /app/start.sh
|
RUN chmod +x /app/start.sh
|
||||||
@ -95,7 +96,7 @@ ENV PORT=5173
|
|||||||
|
|
||||||
# Health check with wget (more reliable than node)
|
# Health check with wget (more reliable than node)
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
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
|
# Use dumb-init to handle signals properly
|
||||||
ENTRYPOINT ["dumb-init", "--"]
|
ENTRYPOINT ["dumb-init", "--"]
|
||||||
|
|||||||
@ -31,7 +31,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- app_network
|
- app_network
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user