Created
February 7, 2021 19:47
-
-
Save stebennett/9775ceb5ec0d641a5635dfc6e97b27b0 to your computer and use it in GitHub Desktop.
Docker compose for a wordpress installation
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: '3' | |
services: | |
mysql: | |
image: 'mysql:5.7' | |
environment: | |
- MYSQL_ROOT_PASSWORD=password | |
- MYSQL_DATABASE=wordpress | |
wordpress: | |
image: wordpress | |
volumes: | |
- ./data:/var/www/html | |
ports: | |
- 8080:80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment