services:
wordpress:
image: wordpress:latest
entrypoint: >
sh -c “chown -R www-data:www-data /var/www/html/wp-content/uploads &&
chmod -R 755 /var/www/html/wp-content/uploads &&
docker-entrypoint.sh apache2-foreground”
volumes:
– wordpress_data:/var/www/html
– ./php-conf/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini