Skip to content

Instantly share code, notes, and snippets.

@davidmanson
Created May 9, 2017 19:41
Show Gist options
  • Save davidmanson/b3ef1d11c82ae7115d57c65794922da8 to your computer and use it in GitHub Desktop.
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
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