upload 2 3s

This commit is contained in:
yznahmad 2025-07-24 15:22:02 +03:00
parent 2f128c9980
commit e8c83df854
3 changed files with 11 additions and 11 deletions

View File

@ -80,8 +80,8 @@ else
fi fi
fi fi
echo "Database setup complete. Starting application on port 5173..." echo "Database setup complete. Starting application on port 3000..."
export PORT=5173 export PORT=3000
exec npx remix-serve ./build/server/index.js exec npx remix-serve ./build/server/index.js
EOF EOF
@ -89,14 +89,14 @@ RUN chmod +x /app/start.sh
USER remix USER remix
EXPOSE 5173 EXPOSE 3000
ENV NODE_ENV=production ENV NODE_ENV=production
ENV PORT=5173 ENV PORT=3000
# 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:5173/health || exit 1 CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
# Use dumb-init to handle signals properly # Use dumb-init to handle signals properly
ENTRYPOINT ["dumb-init", "--"] ENTRYPOINT ["dumb-init", "--"]

View File

@ -9,10 +9,10 @@ services:
container_name: phosphat-report-app container_name: phosphat-report-app
restart: unless-stopped restart: unless-stopped
ports: ports:
- "${APP_PORT:-5173}:5173" - "${APP_PORT:-5173}:3000"
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=5173 - PORT=3000
- DATABASE_URL=file:/app/data/production.db - DATABASE_URL=file:/app/data/production.db
- SESSION_SECRET=${SESSION_SECRET} - SESSION_SECRET=${SESSION_SECRET}
- SUPER_ADMIN=${SUPER_ADMIN} - SUPER_ADMIN=${SUPER_ADMIN}
@ -31,7 +31,7 @@ services:
networks: networks:
- app_network - app_network
healthcheck: 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 interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3

View File

@ -9,10 +9,10 @@ services:
container_name: phosphat-report-app container_name: phosphat-report-app
restart: unless-stopped restart: unless-stopped
ports: ports:
- "${APP_PORT:-5173}:5173" - "${APP_PORT:-5173}:3000"
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=5173 - PORT=3000
- DATABASE_URL=file:/app/data/production.db - DATABASE_URL=file:/app/data/production.db
- SESSION_SECRET=${SESSION_SECRET} - SESSION_SECRET=${SESSION_SECRET}
- SUPER_ADMIN=${SUPER_ADMIN} - SUPER_ADMIN=${SUPER_ADMIN}
@ -31,7 +31,7 @@ services:
networks: networks:
- app_network - app_network
healthcheck: 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 interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3