Skip to content

Instantly share code, notes, and snippets.

@zackify
Created April 15, 2018 18:17
Show Gist options
  • Save zackify/d8e428f93e018c3fbcce512414d02e62 to your computer and use it in GitHub Desktop.
Save zackify/d8e428f93e018c3fbcce512414d02e62 to your computer and use it in GitHub Desktop.
Quickstart gutenblock (docker-compose up and it will sync blocks folder)
version: '3.3'
services:
db:
image: mysql:latest
volumes:
- dbdata:/var/lib/mysql
restart: always
ports:
- "3306:3306"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_DATABASE=wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "80:80"
volumes:
- ./blocks:/var/www/html/wp-content/plugins/blocks
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: root
volumes:
dbdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment