Dockerized Drupal 9 with persistent Database
Until today I used to run the admin setup of my blog on my local using lando. Which was fine and is great for local dev, however I also wanted to be able to blog using my tablet or phone while not having my MacBook in front of me. In addition I do like having backups.
I’ve now set it up on my computer in my office which is running at all times anyhow, accessible from anywhere and backed up to my Synology. The setup is using Docker with a persistent database and volume for the modules/sites etc folders.
Here is the docker-compose.yml (default passwords as per bitnami image are shown):
|
|
Source: https://hub.docker.com/r/bitnami/drupal
Just run:
|
|
and localhost should show your Drupal 9 installation.