44406b72db
Moteva-style AI design workbench replica. Home prompt creates a project; the project page provides an infinite canvas with node drag, zoom/pan, a design chat panel, history replay, image asset upload, and project save/regenerate. - Backend: go-zero, DDD layering, sqlc/pgx, optional PostgreSQL; memory or Redis cache; asynq job queue; MinIO/S3/R2/OSS object storage; sky-valley/pi agent runtime adapter. - Frontend: Next.js App Router + Vite artifact build, TypeScript, i18n, shadcn/ui components, auth (OTP/Turnstile/Google/WeChat). - Deploy: Docker Compose and k3s manifests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
92 lines
2.0 KiB
YAML
92 lines
2.0 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:18-alpine
|
|
environment:
|
|
POSTGRES_DB: canvas
|
|
POSTGRES_USER: canvas
|
|
POSTGRES_PASSWORD: canvas
|
|
ports:
|
|
- "15432:5432"
|
|
volumes:
|
|
- postgres18-data:/var/lib/postgresql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U canvas -d canvas"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 20
|
|
|
|
redis:
|
|
image: redis:8-alpine
|
|
command: ["redis-server", "--appendonly", "yes"]
|
|
ports:
|
|
- "16379:6379"
|
|
volumes:
|
|
- redis-data:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 20
|
|
|
|
minio:
|
|
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
|
|
command: ["server", "/data", "--console-address", ":9001"]
|
|
environment:
|
|
MINIO_ROOT_USER: canvas
|
|
MINIO_ROOT_PASSWORD: canvas-secret
|
|
volumes:
|
|
- minio-data:/data
|
|
ports:
|
|
- "19000:9000"
|
|
- "19001:9001"
|
|
healthcheck:
|
|
test: ["CMD", "mc", "ready", "local"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 20
|
|
|
|
api:
|
|
build:
|
|
context: ../server
|
|
command: ["/app/img-infinite-canvas", "-f", "/app/etc/config.yaml", "-mode", "api"]
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
minio:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./config/api.docker.yaml:/app/etc/config.yaml:ro
|
|
ports:
|
|
- "8888:8888"
|
|
|
|
worker:
|
|
build:
|
|
context: ../server
|
|
command: ["/app/img-infinite-canvas", "-f", "/app/etc/config.yaml", "-mode", "worker"]
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
minio:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./config/api.docker.yaml:/app/etc/config.yaml:ro
|
|
|
|
web:
|
|
build:
|
|
context: ../frontend
|
|
environment:
|
|
NEXT_PUBLIC_API_PROXY: http://api:8888
|
|
depends_on:
|
|
- api
|
|
ports:
|
|
- "3000:3000"
|
|
|
|
volumes:
|
|
postgres18-data:
|
|
redis-data:
|
|
minio-data:
|