Spaces:
Running
Running
Hermes Agent
feat: migrate Hugging Face Space to direct opencode serve API server - remove old Python Telegram bridge
3a63028 Download docker-compose.yml from Jishnupg/Opencode-Cli: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/spaces/Jishnupg/Opencode-Cli/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/Jishnupg/Opencode-Cli/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/Jishnupg/Opencode-Cli/resolve/main/docker-compose.yml
686 Bytes
| version: "3.8" | |
| services: | |
| opencode: | |
| build: . | |
| ports: | |
| - "4096:4096" | |
| environment: | |
| # Set your API keys here | |
| - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-} | |
| - OPENAI_API_KEY=${OPENAI_API_KEY:-} | |
| # Optional: enable HTTP basic auth | |
| - OPENCODE_SERVER_USERNAME=${OPENCODE_SERVER_USERNAME:-} | |
| - OPENCODE_SERVER_PASSWORD=${OPENCODE_SERVER_PASSWORD:-} | |
| volumes: | |
| # Mount a directory for projects to persist data | |
| - opencode-data:/projects | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:4096/api/health"] | |
| interval: 30s | |
| timeout: 5s | |
| retries: 3 | |
| volumes: | |
| opencode-data: | |