Add Docker Compose Lingma bootstrap support

Package the proxy for Docker Compose deployments and add Lingma bootstrap, session restore, and runtime status support for containerized remote usage.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
GitHub Actions
2026-05-07 23:56:05 +08:00
parent 86fbdbc40c
commit a4cedecca6
10 changed files with 1067 additions and 68 deletions

25
docker-compose.yml Normal file
View File

@@ -0,0 +1,25 @@
services:
lingma-proxy:
build:
context: .
container_name: lingma-proxy
env_file:
- .env
ports:
- "${LINGMA_PROXY_PORT:-8095}:8095"
volumes:
- ./data:/app/data
- ./secrets:/secrets:ro
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"sh",
"-c",
"wget -q -O - http://127.0.0.1:8095/runtime/status | grep -q '\"ok\":true'"
]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s