Deploying Drupal with Docker and Gitlab CI
Hello fellow Drupal Users,
I currently working on a DevOps flow for our Drupal deployments. There is a template available I based my work on:
https://github.com/dunglas/frankenphp-drupal/blob/main/Dockerfile
My idea was to use frankenphp to create a Container that can be spun up on the appropriate server. I have finished the gitlab-ci.yml and it builds.
I am doing heavy multisite (50+ sites). I want to mount the sites directory from the current environment into the container. This works pretty well, except for when files are changed. (For example settings.php is changed.)
Is there something I can do so frankenphp catches file change without restarting?
The whole codebase is freshly installed using composer and copied into the container. I was unable to use ssh-links inside my composer.json (I was unable to make SSHing from the build container to my Gitlab work) and instead opted to use https-links that are supplied a CI-Token using buildkit.
Is this a viable way to ship containerized drupal? Are there templates or tools out there I can learn from or any best practices or experiences you want to share?
[link] [comments]