Skip to content

Instantly share code, notes, and snippets.

@whoisryosuke
Last active March 10, 2019 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whoisryosuke/77da2fbe1c5ce782a0908cb1e8d17fe7 to your computer and use it in GitHub Desktop.
Save whoisryosuke/77da2fbe1c5ce782a0908cb1e8d17fe7 to your computer and use it in GitHub Desktop.
Docker 🐳 - Wordpress easy-mode server. Drop this into the wordpress project root, run `docker-compose up -d`, go to http://localhost:8080 πŸ‘βš‘οΈ
version: "2"
services:
my-wpdb:
image: mariadb
ports:
- "8081:3306"
environment:
MYSQL_ROOT_PASSWORD: root
my-wp:
image: wordpress
volumes:
- ./:/var/www/html
ports:
- "8080:80"
links:
- my-wpdb:mysql
environment:
WORDPRESS_DB_PASSWORD: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment