Spaces:
Runtime error
Runtime error
Download docker-compose.yml from devmurtaza/RastaAI: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/devmurtaza/RastaAI/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/devmurtaza/RastaAI/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/devmurtaza/RastaAI/resolve/main/docker-compose.yml
1.1 kB
| services: | |
| db: | |
| image: postgres:16-alpine | |
| environment: | |
| POSTGRES_USER: rasta | |
| POSTGRES_PASSWORD: rasta | |
| POSTGRES_DB: rasta_ai | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - rasta_pg_data:/var/lib/postgresql/data | |
| - ./init.sql:/docker-entrypoint-initdb.d/init.sql | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U rasta -d rasta_ai"] | |
| interval: 5s | |
| timeout: 3s | |
| retries: 10 | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - "6379:6379" | |
| healthcheck: | |
| test: ["CMD", "redis-cli", "ping"] | |
| interval: 5s | |
| timeout: 3s | |
| retries: 10 | |
| api: | |
| build: . | |
| env_file: | |
| - .env | |
| environment: | |
| DATABASE_URL: postgresql+asyncpg://rasta:rasta@db:5432/rasta_ai | |
| SYNC_DATABASE_URL: postgresql+psycopg2://rasta:rasta@db:5432/rasta_ai | |
| REDIS_URL: redis://redis:6379/0 | |
| ports: | |
| - "8000:8000" | |
| depends_on: | |
| db: | |
| condition: service_healthy | |
| redis: | |
| condition: service_healthy | |
| volumes: | |
| - ./app/models/artifacts:/app/app/models/artifacts | |
| volumes: | |
| rasta_pg_data: | |