Files
superDreamFront/.env.example
xuyong b5553c144c add MySQL container to docker-compose and fix backend container/image name
- Add mysql:8.0 service with health check and named volume for data persistence
- Backend depends_on db with service_healthy condition
- Override SD_DB_HOST=db so backend connects to MySQL container via Docker network
- Rename backend container and image to superdreamfront
- Update .env.example to note "db" host for docker-compose usage

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 21:56:55 +08:00

25 lines
439 B
Plaintext

# SuperDream Configuration
# App
SD_APP_NAME=SuperDream
SD_DEBUG=false
SD_HOST=0.0.0.0
SD_PORT=18000
# Database (MySQL)
SD_DB_TYPE=mysql
SD_DB_HOST=localhost # use "db" when running with docker-compose
SD_DB_PORT=3306
SD_DB_USER=root
SD_DB_PASSWORD=
SD_DB_NAME=superdream
# JWT
SD_JWT_SECRET=superdream-secret-change-me
SD_JWT_ALGORITHM=HS256
SD_JWT_ACCESS_EXPIRE_MINUTES=30
SD_JWT_REFRESH_EXPIRE_DAYS=7
# Storage
SD_DATA_DIR=./data