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>
26 lines
526 B
YAML
26 lines
526 B
YAML
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
|