Created
November 14, 2017 18:37
-
-
Save egermano/20c239cddb3ac089b7b0f3b9b0acd55b to your computer and use it in GitHub Desktop.
Wordpress 3.9.1 docker compose with mysql
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
db: | |
image: mysql:5.7 | |
restart: always | |
ports: | |
- 3306:3306 | |
volumes: | |
- db_data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: secret | |
wordpress: | |
links: | |
- db:mysql | |
image: wordpress:3.9.1 | |
restart: always | |
volumes: | |
- ./wp-content:/var/www/html/wp-content | |
environment: | |
WORDPRESS_DB_HOST: db | |
WORDPRESS_DB_PASSWORD: secret | |
ports: | |
- 127.0.0.1:80:80 | |
- 127.0.0.1:443:443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment