chore: add Docker Compose usage instructions to README

This commit is contained in:
2026-02-24 18:40:52 +08:00
parent 55213dc356
commit 5af1a18a48

View File

@@ -139,3 +139,22 @@ Then call APIs:
curl http://127.0.0.1:8080/health curl http://127.0.0.1:8080/health
curl -H "Authorization: Bearer your-token" http://127.0.0.1:8080/scripts curl -H "Authorization: Bearer your-token" http://127.0.0.1:8080/scripts
``` ```
## Docker Compose
Run with compose:
```bash
# optional: export HOST_API_TOKEN=your-token
# optional: export HOST_PORT=8080
docker compose up -d --build
```
Check status/logs:
```bash
docker compose ps
docker compose logs -f slhaf-hub
```
Stop:
```bash
docker compose down
```