Skip to content

Instantly share code, notes, and snippets.

@njbair
Created March 14, 2019 01:13
Show Gist options
  • Save njbair/26a78c15d2551bb13f350fc5823ef77b to your computer and use it in GitHub Desktop.
Save njbair/26a78c15d2551bb13f350fc5823ef77b to your computer and use it in GitHub Desktop.
WordPress, MySQL 5.7, Adminer for Local Dev
version: '3.1'
services:
wordpress:
image: wordpress
ports:
- 80:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DEBUG: 1
volumes:
- "./wp-content:/var/www/html/wp-content"
- "./www:/var/www/html"
db:
image: mysql:5.7
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_ROOT_PASSWORD: root
volumes:
- "./db:/var/lib/mysql"
adminer:
image: adminer
ports:
- 8080:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment