b5a62ee9a3
- domain: User, Workspace, Project, AssetLibrary, Asset, IngestJob - ports: repository interfaces - application: use cases - adapters: in-memory - API: FastAPI 5 routes - worker: Celery ingest_asset - tests: 4 passing
56 lines
1000 B
YAML
56 lines
1000 B
YAML
version: '3.9'
|
|
services:
|
|
web:
|
|
image: node:20
|
|
working_dir: /app/apps/web
|
|
command: sh -c "npm install && npm run dev"
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ../..:/app
|
|
depends_on:
|
|
- api
|
|
|
|
api:
|
|
image: xiaoxia-saas-api:dev
|
|
build:
|
|
context: ../..
|
|
dockerfile: infra/docker/api.Dockerfile
|
|
env_file:
|
|
- ../../.env.example
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
|
|
worker:
|
|
image: xiaoxia-saas-worker:dev
|
|
build:
|
|
context: ../..
|
|
dockerfile: infra/docker/worker.Dockerfile
|
|
env_file:
|
|
- ../../.env.example
|
|
depends_on:
|
|
- redis
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:16
|
|
environment:
|
|
POSTGRES_DB: xiaoxia_saas
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:7
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
volumes:
|
|
postgres_data:
|