Docker Compose WordPress Volumes Appear Empty

前端 未结 1 368
南旧
南旧 2021-01-21 02:10

I\'m trying to set up a simple WordPress build using docker compose. However, when I build it, the volumes appear to be empty.

Here is my docker-compose.yml:

相关标签:
1条回答
  • 2021-01-21 02:16

    In your docker-compose file you say ./wp-data:/var/lib/mysql which is host folder mapping (not volume) but in your docker-compose you define docker named volume called wp-data and if you want to use this volume you have to use it as wp-data:/var/lib/mysql. I would also suggest to remove ${PWD} because it might cause problem in sh

    0 讨论(0)
提交回复
热议问题