Created
April 9, 2018 18:02
-
-
Save whoisryosuke/ef45400794db587b5eec1063fcdc0b84 to your computer and use it in GitHub Desktop.
Docker Compose file for basic Wordpress projects
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
my-wpdb: | |
image: mariadb | |
ports: | |
- "8081:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
my-wp: | |
image: wordpress | |
volumes: | |
- ./:/var/www/html | |
ports: | |
- "8080:80" | |
links: | |
- my-wpdb:mysql | |
environment: | |
WORDPRESS_DB_PASSWORD: root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment