Skip to content

Instantly share code, notes, and snippets.

@raisiqueira
Last active December 18, 2017 22:35
Show Gist options
  • Save raisiqueira/46cb5c900ec33e8c8ece49f9e30491cc to your computer and use it in GitHub Desktop.
Save raisiqueira/46cb5c900ec33e8c8ece49f9e30491cc to your computer and use it in GitHub Desktop.
Simple Docker for WordPress Dev local

Run a simple command: docker-compose -f docker-compose-wp.yml -d

version: '3.3'
services:
wordpress:
image: wordpress
ports:
- 8080:80
volumes:
- ./public:/var/www/html
environment:
WORDPRESS_DB_PASSWORD: password
mysql:
image: mysql:5.7
volumes:
- "./database/db:/var/lib/mysql"
restart: always
ports:
- 33067:3306
environment:
MYSQL_ROOT_PASSWORD: password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment