Skip to content

Instantly share code, notes, and snippets.

@soup-bowl
Last active June 5, 2019 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soup-bowl/d07ca3b02c9d16a6b0cfa4533588ce71 to your computer and use it in GitHub Desktop.
Save soup-bowl/d07ca3b02c9d16a6b0cfa4533588ce71 to your computer and use it in GitHub Desktop.
Docker Compose file for a quick WordPress installation. Also recommend installing Log Viewer and custom SMTP (set to port 51003).
version: '3.6'
services:
wp_db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password123
wp_db_admin:
depends_on:
- wp_db
image: phpmyadmin/phpmyadmin:latest
ports:
- 51001:80
environment:
PMA_HOST: wp_db
PMA_USER: root
PMA_PASSWORD: password
wp_mail:
image: mailhog/mailhog:latest
ports:
- 51003:1025
- 51002:8025
wp_www:
depends_on:
- wp_db
image: wordpress:latest
volumes:
- "./wp-development:/var/www/html"
ports:
- 51000:80
environment:
WORDPRESS_DB_HOST: wp_db
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: password123
WORDPRESS_DB_NAME: wp_development
WORDPRESS_DEBUG: 1
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SAVEQUERIES', true );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment