This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
version: '2' | |
services: | |
mysql: | |
container_name: mysql | |
image: mariadb | |
volumes: | |
- ./wp_db_data/:/var/lib/mysql | |
ports: | |
- "8081:3306" |