litellm/litellm/deploy/compose
Yassin Kortam 6efbaf539c
chore: move deployment sources under litellm/deploy (#50981)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-12 04:19:56 +00:00
..
docker-compose.liteadmin.yml chore: move deployment sources under litellm/deploy (#50981) 2026-11-12 04:19:56 +00:00
docker-compose.yml chore: move deployment sources under litellm/deploy (#50981) 2026-11-12 04:19:56 +00:00
prometheus.yml chore: move deployment sources under litellm/deploy (#50981) 2026-11-12 04:19:56 +00:00
README.md chore: move deployment sources under litellm/deploy (#50981) 2026-11-12 04:19:56 +00:00

Compose deployments

The LiteAdmin overlay requires an explicit project name. Moving the Compose files changes the default project name and therefore the state volume name. Reuse the existing name so the agent keeps its saved state.

Set EXISTING_LITEADMIN_CONTAINER to the running or stopped agent container, then read its project label before upgrading.

export COMPOSE_PROJECT_NAME="$(docker inspect --format '{{ index .Config.Labels "com.docker.compose.project" }}' "$EXISTING_LITEADMIN_CONTAINER")"
docker compose -f litellm/deploy/compose/docker-compose.yml \
  -f litellm/deploy/compose/docker-compose.liteadmin.yml up -d

Passing the same existing name with docker compose --project-name also works. For a new deployment, choose a stable project name and keep using it.