Files
superDreamFront/docker-compose.yml
xuyong 35c0b7de16 integrate sub2api as upstream for auth/keys/usage via FastAPI BFF
Preserve local user table for superDream-specific features while syncing
user lifecycle, API key CRUD and usage queries through sub2api. Admin token
handles reads and user lifecycle; per-user tokens (Fernet-encrypted in DB)
handle key writes that admin endpoints do not expose.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 21:23:08 +08:00

41 lines
890 B
YAML

services:
db:
image: mysql:8.0
container_name: superdream-db
environment:
MYSQL_ROOT_PASSWORD: ${SD_DB_PASSWORD:-superdream}
MYSQL_DATABASE: ${SD_DB_NAME:-superdream}
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${SD_DB_PASSWORD:-superdream}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
restart: unless-stopped
backend:
container_name: superdreamfront
image: superdreamfront:0.0.2
build:
context: .
dockerfile: Dockerfile
ports:
- "18000:18000"
volumes:
- ./data:/backend/data
env_file:
- .env
environment:
SD_DB_HOST: db
depends_on:
db:
condition: service_healthy
restart: unless-stopped
volumes:
db_data: