Created
September 3, 2021 04:01
-
-
Save glendaviesnz/a02927d4c953943d0718d260664a9110 to your computer and use it in GitHub Desktop.
Basic WordPress docker compose file
This file contains 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.7' | |
services: | |
mysql: | |
image: mariadb | |
ports: | |
- '3306' | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: wordpress | |
volumes: | |
- 'mysql:/var/lib/mysql' | |
wordpress: | |
build: . | |
depends_on: | |
- mysql | |
image: wordpress | |
ports: | |
- '4759:80' | |
environment: | |
WORDPRESS_DB_USER: root | |
WORDPRESS_DB_PASSWORD: password | |
WORDPRESS_DB_NAME: wordpress | |
volumes: &ref_0 | |
- 'wordpress:/var/www/html' | |
- '/usr/local/dev/a8c-projects/jetpack/projects/plugins/jetpack:/var/www/html/wp-content/plugins/jetpack' | |
cli: | |
depends_on: | |
- wordpress | |
image: 'wordpress:cli' | |
volumes: *ref_0 | |
user: '33:33' | |
environment: | |
WORDPRESS_DB_USER: root | |
WORDPRESS_DB_PASSWORD: password | |
WORDPRESS_DB_NAME: wordpress | |
volumes: | |
wordpress: {} | |
mysql: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment