Created
September 29, 2017 14:05
-
-
Save odadoda/417f3bc9c153cef250f0220e9b72a438 to your computer and use it in GitHub Desktop.
Wordpress and mariadb docker compose
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: "3.1" | |
services: | |
wordpress: | |
image: wordpress | |
ports: | |
- 8080:80 | |
environment: | |
WORDPRESS_DB_PASSWORD: password | |
links: | |
- mdb:mysql | |
volumes: | |
- ./html:/var/www/html | |
mdb: | |
image: mariadb | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
volumes: | |
- ./data:/var/lib/mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment