Download docker-compose.yml from qf46578/OmniCS: direct link, hf CLI and curl.
- Browser
- Download file 1.63 kB
-
https://huggingface.co/qf46578/OmniCS/resolve/8c21f94de855dc287d531bbf019bc54bc4b92594/docker-compose.yml
- Command line
-
hf download hf://qf46578/OmniCS@8c21f94de855dc287d531bbf019bc54bc4b92594/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/qf46578/OmniCS/resolve/8c21f94de855dc287d531bbf019bc54bc4b92594/docker-compose.yml
1.63 kB
| version: '3.8' | |
| services: | |
| # PostgreSQL 数据库 | |
| postgres: | |
| image: postgres:15-alpine | |
| container_name: omics-postgres | |
| environment: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: omics | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U postgres"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 5 | |
| # Redis 缓存 | |
| redis: | |
| image: redis:7-alpine | |
| container_name: omics-redis | |
| ports: | |
| - "6379:6379" | |
| volumes: | |
| - redis_data:/data | |
| healthcheck: | |
| test: ["CMD", "redis-cli", "ping"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 5 | |
| # 后端服务 | |
| backend: | |
| build: | |
| context: ./backend | |
| dockerfile: Dockerfile | |
| container_name: omics-backend | |
| environment: | |
| NODE_ENV: production | |
| PORT: 3001 | |
| DATABASE_URL: postgresql://postgres:postgres@postgres:5432/omics | |
| REDIS_URL: redis://redis:6379 | |
| JWT_SECRET: ${JWT_SECRET:-omics-secret-key-change-in-production} | |
| DOUBAO_API_KEY: ${DOUBAO_API_KEY} | |
| QWEN_API_KEY: ${QWEN_API_KEY} | |
| DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY} | |
| ports: | |
| - "3001:3001" | |
| depends_on: | |
| postgres: | |
| condition: service_healthy | |
| redis: | |
| condition: service_healthy | |
| volumes: | |
| - ./backend/logs:/app/logs | |
| # 前端服务 | |
| frontend: | |
| build: | |
| context: ./frontend | |
| dockerfile: Dockerfile | |
| container_name: omics-frontend | |
| ports: | |
| - "80:80" | |
| depends_on: | |
| - backend | |
| volumes: | |
| postgres_data: | |
| redis_data: | |