Skip to content

Instantly share code, notes, and snippets.

@rguillermo
Last active November 8, 2021 18:56
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 rguillermo/c77f05aa1385dc758bc2687c4a105783 to your computer and use it in GitHub Desktop.
Save rguillermo/c77f05aa1385dc758bc2687c4a105783 to your computer and use it in GitHub Desktop.
Base Docker Compose file for initialize Wordpress Development on local
version: '3.1'
services:
wordpress:
image: wordpress
ports:
- 8000:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: changeme
WORDPRESS_DB_PASSWORD: changeme
WORDPRESS_DB_NAME: changeme
WORDPRESS_DEBUG: "1"
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
define('FS_METHOD', 'direct');
define( 'SCRIPT_DEBUG', true );
volumes:
- ./wordpress/themes:/var/www/html/wp-content/themes
- ./wordpress/plugins:/var/www/html/wp-content/plugins
db:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: changeme
MYSQL_USER: changeme
MYSQL_PASSWORD: changeme
MYSQL_ROOT_PASSWORD: changeme
volumes:
- ./mysql:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment