W
W
Wicu2019-04-01 18:57:23
linux
Wicu, 2019-04-01 18:57:23

How to set up Docker volumes to work with Wordpress?

How to change files in volumes docker compose? I shared the wordpress image folder, but I can’t change anything there (for some reason, I can root, but wp-content, wp-includes, etc. are gone). I added myself to the docker group, rebooted, I can work with docker without sudo, but I can’t change files. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kdvoryashin, 2019-04-02
@kdvoryashin

For access, you must specify in the docker-compose file which folders you want to share access to.
Something like:

volumes:
       - ./wp-content/:/var/www/html/wp-content

An example of a complete working config can be found on github

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question