56743d1cf4
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 3m4s
Allow the dashboard health check to include optional LiteLLM auth headers and treat unauthenticated 401 responses as an auth-required healthy state. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
services:
|
|
dashboard-dev:
|
|
image: nas-dashboard-dev:latest
|
|
container_name: nas-dashboard-dev
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:4001:4000"
|
|
environment:
|
|
- DOCKER_HOST=tcp://docker-socket-proxy:2375
|
|
- GITEA_URL=http://gitea:3000
|
|
- GITEA_TOKEN=${GITEA_TOKEN}
|
|
- VOLUME_ROOT=/volume1
|
|
- SSH_HOST=host.docker.internal
|
|
- SSH_USER=zjgump
|
|
- VPS_SSH_HOST=158.101.140.85
|
|
- VPS_SSH_USER=jimmyg
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
- ADMIN_USER=jimmy
|
|
- ADMIN_PASSWORD_HASH=${ADMIN_PASSWORD_HASH}
|
|
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN:-}
|
|
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID:-}
|
|
- TELEGRAM_PROXY=${TELEGRAM_PROXY:-}
|
|
- CORS_ORIGINS=https://dev.nas.jimmygan.com,https://dev.nas.jimmygan.com:8443
|
|
- LITELLM_URL=http://litellm:4005
|
|
- LITELLM_HEALTH_API_KEY=${LITELLM_HEALTH_API_KEY:-}
|
|
volumes:
|
|
- /volume1:/volume1
|
|
- /volume1/docker/nas-dashboard/ssh/dashboard_terminal:/app/ssh/id_ed25519:ro
|
|
- /volume1/docker/nas-dashboard/ssh/vps_terminal:/app/ssh/vps_id_ed25519:ro
|
|
- /volume1/docker/nas-dashboard/ssh/known_hosts:/app/ssh/known_hosts:ro
|
|
- /volume1/docker/chat-summarizer/data:/app/data/chat-summarizer:ro
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:4000/api/health')"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
networks:
|
|
- nas-dashboard_internal
|
|
- gitea_gitea
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
networks:
|
|
nas-dashboard_internal:
|
|
external: true
|
|
gitea_gitea:
|
|
external: true
|