Repository navigation
1.1.1
π Release v1.1.0 β Improved MySQL Management & Template Handling
π New Features
-
π Automatic MySQL Permission Granting via script
- After starting
shared_mysql, the CLI now:- Waits for MySQL readiness via
SELECT 1 - Executes
GRANT ALL PRIVILEGESfor the configured${MYSQL_USER} - Ensures consistent DB access without relying on entrypoint scripts or volume states
- Waits for MySQL readiness via
- After starting
-
π¦ Template-Based Shared Services
shared-services/docker-compose.ymlis now fully generated from a.tmpltemplate- Respects global
.envvalues (network, MySQL credentials, IPs) - Allows consistent setup from a script without relying on Composeβs built-in interpolation
-
π Structured Templates
- Shared templates are moved to
templates/shared-services/ - This improves modularity and avoids polluting the root directory
- Shared templates are moved to
-
π₯ Fallback Removal with
sudo rm -rf- If the script fails to delete the domain folder, a fallback via
sudois attempted
- If the script fails to delete the domain folder, a fallback via
π Improvements
- β
Added
InsertIPMappingAtTop()to ensureshared-mysqlis always in.ipmap.env - π§± Added Nginx+fastcgiphp config
- π Auto-creates required directories before writing template files
- π§° Improved debugging messages and container startup clarity
β οΈ Notes
- This release deprecates using init.sql inside the container
- Instead, all MySQL setup happens post-start via Docker exec
- Make sure
.envcontains validMYSQL_ROOT_PASSWORD,MYSQL_USER,MYSQL_PASSWORD
β
Example .env updates:
NETWORK_NAME=local_net
SUBNET=10.0.100.0/24
REVERSE_PROXY_IP=10.0.100.2
SHARED_MYSQL_IP=10.0.100.11
PROJECT_START_IP=10.0.100.20
MYSQL_ROOT_PASSWORD=root
MYSQL_USER=user
MYSQL_PASSWORD=userpassπ‘ This update makes DockDev significantly more robust and environment-agnostic, especially when run under WSL2 on Windows.