Spaces:
Paused
Paused
Download docker-compose.yml from Therdpoom/line-webhook: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/spaces/Therdpoom/line-webhook/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/Therdpoom/line-webhook/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/Therdpoom/line-webhook/resolve/main/docker-compose.yml
1.59 kB
| version: "3.9" | |
| services: | |
| # ββ Webhook Server ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| webhook: | |
| build: . | |
| ports: | |
| - "8000:8000" | |
| env_file: .env | |
| depends_on: | |
| postgres: | |
| condition: service_healthy | |
| redis: | |
| condition: service_healthy | |
| volumes: | |
| - ./app:/app/app # hot-reload ΰΉΰΈ dev mode | |
| command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload | |
| # ββ PostgreSQL ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| postgres: | |
| image: postgres:16-alpine | |
| environment: | |
| POSTGRES_USER: user | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: sentiment_db | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U user -d sentiment_db"] | |
| interval: 5s | |
| timeout: 5s | |
| retries: 5 | |
| # ββ Redis βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - "6379:6379" | |
| healthcheck: | |
| test: ["CMD", "redis-cli", "ping"] | |
| interval: 5s | |
| timeout: 3s | |
| retries: 5 | |
| volumes: | |
| postgres_data: | |