Created
March 9, 2019 04:56
-
-
Save jremi/52724fe90417efa0691f2d0f88431236 to your computer and use it in GitHub Desktop.
Docker Compose config file (docker-compose.yml) for Wordpress + MySQL (MariaDB)
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: '2' | |
services: | |
wordpress: | |
image: wordpress:latest | |
ports: | |
- 8080:80 | |
volumes: | |
- ./wp-content:/var/www/html/wp-content | |
links: | |
- mysql | |
environment: | |
WORDPRESS_DB_PASSWORD: myPassword123 | |
mysql: | |
image: mariadb:latest | |
ports: | |
- 8081:3306 | |
volumes: | |
- ./mysql:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: myPassword123 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment