Skip to content

Instantly share code, notes, and snippets.

@zerbfra
Created May 1, 2017 16:05
Show Gist options
  • Save zerbfra/b531d59ecbedb83141819839652d39bb to your computer and use it in GitHub Desktop.
Save zerbfra/b531d59ecbedb83141819839652d39bb to your computer and use it in GitHub Desktop.
Wordpress + PhpMyAdmin + External volume
wordpress:
image: wordpress
links:
- wordpress_db:mysql
ports:
- 8080:80
volumes:
- ./html:/var/www/html
wordpress_db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: root
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- wordpress_db:mysql
ports:
- 8181:80
environment:
PMA_HOST: mysql
PMA_PORT: 3306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment