mirror of
https://github.com/okxlin/appstore.git
synced 2026-09-23 00:00:59 +00:00
35 lines
979 B
YAML
35 lines
979 B
YAML
services:
|
|
litellm:
|
|
image: "ghcr.io/berriai/litellm-database:latest"
|
|
container_name: ${CONTAINER_NAME}
|
|
restart: unless-stopped
|
|
networks:
|
|
- 1panel-network
|
|
ports:
|
|
- "${PANEL_APP_PORT_HTTP}:4000"
|
|
environment:
|
|
- LITELLM_MODE=PRODUCTION
|
|
- LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY}
|
|
- LITELLM_SALT_KEY=${LITELLM_SALT_KEY}
|
|
- DATABASE_HOST=${PANEL_DB_HOST}
|
|
- DATABASE_PORT=${PANEL_DB_PORT}
|
|
- DATABASE_USERNAME=${PANEL_DB_USER}
|
|
- DATABASE_PASSWORD=${PANEL_DB_USER_PASSWORD}
|
|
- DATABASE_NAME=${PANEL_DB_NAME}
|
|
- STORE_MODEL_IN_DB=True
|
|
- DISABLE_ADMIN_UI=False
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- python3 -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:4000/health/liveliness', timeout=5)"
|
|
interval: 30s
|
|
timeout: 10s
|
|
start_period: 90s
|
|
retries: 5
|
|
labels:
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
1panel-network:
|
|
external: true
|