Last active
November 8, 2021 18:56
-
-
Save rguillermo/c77f05aa1385dc758bc2687c4a105783 to your computer and use it in GitHub Desktop.
Base Docker Compose file for initialize Wordpress Development on local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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