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>
This commit is contained in:
@@ -8,7 +8,7 @@ SD_PORT=18000
|
||||
|
||||
# Database (MySQL)
|
||||
SD_DB_TYPE=mysql
|
||||
SD_DB_HOST=localhost
|
||||
SD_DB_HOST=localhost # use "db" when running with docker-compose
|
||||
SD_DB_PORT=3306
|
||||
SD_DB_USER=root
|
||||
SD_DB_PASSWORD=
|
||||
|
||||
Reference in New Issue
Block a user