Skip to content

1.1.1

Choose a tag to compare

@AlexWaha AlexWaha released this 03 May 08:51
· 11 commits to main since this release

πŸš€ 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 PRIVILEGES for the configured ${MYSQL_USER}
      • Ensures consistent DB access without relying on entrypoint scripts or volume states
  • πŸ“¦ Template-Based Shared Services

    • shared-services/docker-compose.yml is now fully generated from a .tmpl template
    • Respects global .env values (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
  • πŸ’₯ Fallback Removal with sudo rm -rf

    • If the script fails to delete the domain folder, a fallback via sudo is attempted

πŸ›  Improvements

  • βœ… Added InsertIPMappingAtTop() to ensure shared-mysql is 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 .env contains valid MYSQL_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.