Download docker-compose.yml from Moole123/moole: direct link, hf CLI and curl.
- Browser
- Download file 573 Bytes
-
https://huggingface.co/spaces/Moole123/moole/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/Moole123/moole/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/Moole123/moole/resolve/main/docker-compose.yml
573 Bytes
| services: | |
| grok2api: | |
| image: ghcr.io/chenyme/grok2api:latest | |
| ports: | |
| - "8000:8000" | |
| volumes: | |
| - grok_data:/app/data | |
| - ./logs:/app/logs | |
| environment: | |
| # =====存储模式: file, mysql 或 redis===== | |
| - STORAGE_MODE=file | |
| # =====数据库连接 URL (仅在STORAGE_MODE=mysql或redis时需要)===== | |
| # - DATABASE_URL=mysql://user:password@host:3306/grok2api | |
| ## MySQL格式: mysql://user:password@host:port/database | |
| ## Redis格式: redis://host:port/db 或 redis://user:password@host:port/db | |
| volumes: | |
| grok_data: |