- Add Rust API scaffold (axum + PostgreSQL + MinIO)
- Add SvelteKit frontend scaffold (Tailwind CSS)
- Add docker-compose for local development
- Include models, routes, services, WebSocket structure
🤖 Generated with Claude Code
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
services:
|
|
api:
|
|
build: ./api
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
DATABASE_URL: postgres://owl:owl@db:5432/owlibou
|
|
MINIO_ENDPOINT: minio:9000
|
|
MINIO_ACCESS_KEY: minioadmin
|
|
MINIO_SECRET_KEY: minioadmin
|
|
JWT_SECRET: change-me-in-production
|
|
RUST_LOG: info
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
minio:
|
|
condition: service_started
|
|
|
|
suite:
|
|
build: ./suite
|
|
ports:
|
|
- "5173:5173"
|
|
environment:
|
|
PUBLIC_API_URL: http://localhost:3000
|
|
PUBLIC_WS_URL: ws://localhost:3000/ws
|
|
depends_on:
|
|
- api
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_USER: owl
|
|
POSTGRES_PASSWORD: owl
|
|
POSTGRES_DB: owlibou
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U owl -d owlibou"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
minio:
|
|
image: minio/minio
|
|
command: server /data --console-address ":9001"
|
|
environment:
|
|
MINIO_ROOT_USER: minioadmin
|
|
MINIO_ROOT_PASSWORD: minioadmin
|
|
volumes:
|
|
- miniodata:/data
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
|
|
volumes:
|
|
pgdata:
|
|
miniodata:
|