Last active
February 15, 2017 18:55
-
-
Save jrswgtr/ff19a832e9043751b870e8abc437ed55 to your computer and use it in GitHub Desktop.
A docker compose file for a WordPress stack with 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
# Dockerized WordPress stack by Joris Wagter | |
version: '1' | |
# wordpress container | |
wordpress: | |
# specify image. uses local, or downloads from repo | |
image: tatemz/wp-cli | |
# link dir host with dir container for persisting files | |
volumes: | |
- ./wp_html:/var/www/html | |
# link database container to wordpress container | |
links: | |
- wordpress_db:mysql | |
# llink port from host to container | |
ports: | |
- 8080:80 | |
# set environment variables for wordpress settings | |
environment: | |
WORDPRESS_DB_NAME: wordpress | |
WORDPRESS_TABLE_PREFIX: wp_ | |
# database container | |
wordpress_db: | |
image: mariadb | |
environment: | |
MYSQL_ROOT_PASSWORD: secret | |
# phpmyadmin container | |
phpmyadmin: | |
image: corbinu/docker-phpmyadmin | |
links: | |
- wordpress_db:mysql | |
ports: | |
- 8181:80 | |
environment: | |
MYSQL_USERNAME: root | |
MYSQL_ROOT_PASSWORD: secret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment