docker-compose wordpress mysql connection refused

后端 未结 6 1026
轮回少年
轮回少年 2021-01-01 12:52

I\'ve created a small docker-compose.yml which used to work like a charm to deploy small WordPress instances. It looks like this:

wordpress:
  i         


        
6条回答
  •  余生分开走
    2021-01-01 13:01

    I too had troubles here. I was using docker-compose to set up multiple wordpress websites on a single (micro) Virtual Private Server, including phpmyadmin and jwilder/nginx-proxy as a controller.

    $ docker logs XXXX will help indicate areas of concern. In my case, the MariaDB databases would keep restarting all the time.

    It turns out that all that stuff just wouldn't fit on a micro 512M Single CPU service. I never received error messages that told me directly that size was an issue, but after adding things up, I realized that when all the databases were starting up, I was running out of memory. An upgrade to 1Gb, 1 CPU service worked just fine.

提交回复
热议问题