So, the error surprised me a bit:
Host ‘172.25.0.3’ is not allowed to connect to this MySQL server
This isn’t a docker networking issue but comes from within the MySQL container.
Did a quick Google and this seems to be connected to the way the volumes are configured. What I noticed in your case is that you define a ghost-data
and a ghost-db
volume, but never actually use them. Instead, you mount the file paths.
I would suggest changing the volumes to the ones you have defined:
volumes:
- ghost-data:/var/lib/ghost/content
and
volumes:
- ghost-db:/var/lib/mysql