Created
May 9, 2017 19:41
-
-
Save davidmanson/b3ef1d11c82ae7115d57c65794922da8 to your computer and use it in GitHub Desktop.
a simple docker-compose file with a WordPress + wp-cli container, with his db and phpmyadmin
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: "2" | |
services: | |
# Maria db service | |
mysql: | |
image: mariadb | |
ports: | |
- "8081:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: rootpassword | |
volumes: | |
- ./db:/var/lib/mysql | |
# Wordpress server service with wp-cli | |
wordpress: | |
image: tatemz/wp-cli | |
volumes: | |
- ./www/:/var/www/html | |
ports: | |
- "8080:80" | |
links: | |
- mysql:mysql | |
environment: | |
WORDPRESS_DB_PASSWORD: rootpassword | |
# PhpMyAdmin is cool | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin:latest | |
ports: | |
- "3000:80" | |
links: | |
- mysql:db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment