Skip to content

Instantly share code, notes, and snippets.

@Rajkumarnikil
Rajkumarnikil / docker-compose.yml
Last active June 10, 2023 04:19 — forked from waustin/docker-compose.yml
Docker Compose File for Wordpress and MySQL
version: '2'
services:
mysql:
container_name: mysql
image: mariadb
volumes:
- ./wp_db_data/:/var/lib/mysql
ports:
- "8081:3306"
@Rajkumarnikil
Rajkumarnikil / docker_wordpress.md
Last active June 10, 2023 04:16 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

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