add bind ips

This commit is contained in:
2026-08-17 14:33:50 +08:00
parent d27c2e229e
commit a8031e2e3b
3 changed files with 32 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ services:
network_mode: host
env_file:
- .env
command: ["python", "-m", "uvicorn", "sentence_api.main:app", "--host", "127.0.0.1", "--port", "8000", "--workers", "1", "--proxy-headers", "--forwarded-allow-ips", "*"]
command: ["python", "-m", "uvicorn", "sentence_api.main:app", "--host", "${ORAL_TRAINER_BIND_HOST:-127.0.0.1}", "--port", "8000", "--workers", "1", "--proxy-headers", "--forwarded-allow-ips", "*"]
volumes:
- ./data:/app/sentence_api/data
healthcheck: