Skip to content

Instantly share code, notes, and snippets.

@abdul
Last active July 22, 2017 16:19
Show Gist options
  • Save abdul/7c110f3712903023ddd354c9c349a06f to your computer and use it in GitHub Desktop.
Save abdul/7c110f3712903023ddd354c9c349a06f to your computer and use it in GitHub Desktop.
WordPress Development with Docker
version: '3'
services:
wordpress:
image: wordpress:latest
ports:
- 8080:80
- 8084:443
volumes:
- ./data:/data
- ./src:/var/www/html
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_PASSWORD: root
depends_on:
- db
db:
image: mysql:5.7
volumes:
- data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- 8092:80
volumes:
data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment