fix: change backend port to 3984, fix healthcheck with node http, relax frontend dependency
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -10,16 +10,16 @@ services:
|
||||
environment:
|
||||
- REPLICATE_API_TOKEN=${REPLICATE_API_TOKEN}
|
||||
- FRONTEND_URL=${FRONTEND_URL:-http://localhost}
|
||||
- PORT=3001
|
||||
- PORT=3984
|
||||
volumes:
|
||||
# Persist model config across container restarts
|
||||
- iqai-models:/app/data
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost:3001/api/health"]
|
||||
interval: 30s
|
||||
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3984/api/health', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
|
||||
interval: 15s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
retries: 5
|
||||
start_period: 15s
|
||||
networks:
|
||||
- iqai-net
|
||||
|
||||
@@ -33,7 +33,7 @@ services:
|
||||
- "${FRONTEND_PORT:-1984}:80"
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
condition: service_started
|
||||
networks:
|
||||
- iqai-net
|
||||
|
||||
|
||||
Reference in New Issue
Block a user