Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.