Created
March 14, 2019 01:13
-
-
Save njbair/26a78c15d2551bb13f350fc5823ef77b to your computer and use it in GitHub Desktop.
WordPress, MySQL 5.7, Adminer for Local Dev
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.1' | |
services: | |
wordpress: | |
image: wordpress | |
ports: | |
- 80:80 | |
environment: | |
WORDPRESS_DB_HOST: db | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: wordpress | |
WORDPRESS_DB_NAME: wordpress | |
WORDPRESS_DEBUG: 1 | |
volumes: | |
- "./wp-content:/var/www/html/wp-content" | |
- "./www:/var/www/html" | |
db: | |
image: mysql:5.7 | |
environment: | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: wordpress | |
MYSQL_ROOT_PASSWORD: root | |
volumes: | |
- "./db:/var/lib/mysql" | |
adminer: | |
image: adminer | |
ports: | |
- 8080:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment