Nginx container configured for use with Wordpress on php-fpm
docker pull milanb/wordpress-nginx
Docker Hub milanb/wordpress-nginx
Can be used in conjunction with wordpress-sqlite (Docker Hub milanb/wordpress-sqlite) to provide a full lightweight Wordpress solution.
Example docker-compose.yml for both:
version: '2'
services:
wp:
image: milanb/wordpress-sqlite
environment:
- WP_HOME=https://mysite.com
- WP_SITEURL=https://mysite.com
volumes:
- db:/var/www/db
- uploads:/var/www/html/wp-content/uploads
restart: always
http:
image: milanb/wordpress-nginx
links:
- wp:wordpress
volumes_from:
- wp
ports:
- "8081:80"
volumes:
db:
external: true
uploads:
external: true