Created
March 20, 2017 15:43
-
-
Save PatrickLang/5be2478ef4c67a7e525a065f9d195848 to your computer and use it in GitHub Desktop.
Example compose file for WordPress & MariaDB
This file contains hidden or 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: | |
wordpress: | |
image: wordpress | |
ports: | |
- 8080:80 | |
environment: | |
WORDPRESS_DB_PASSWORD: Password123! | |
restart: always | |
depends_on: | |
- mysql | |
mysql: | |
image: mariadb | |
environment: | |
MYSQL_ROOT_PASSWORD: Password123! | |
restart: always | |
volumes: | |
- wordpress1vol:/var/lib/mysql | |
volumes: | |
wordpress1vol: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment