I’m using the official WordPress image, I’ve put my local wp-content folder into the container (/ usr / www / html / wp-content) but when I try to copy some files to that folder (local) and reflect on the container Theme for example) I am not allowed to write to my local folder because the permission is set for the apache www-data user.
my docker-compose
version: '2'
services:
wordpress:
image: wordpress
volumes:
- ./wp-content/:/var/www/html/wp-content
ports:
- 8080:80
environment:
WORDPRESS_DB_PASSWORD: wpdocker
mysql:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: wpdocker