Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example Docker Compose for Wordpress
version: '2'
services:
wordpress:
image: wordpress:4.7.3-php5.6-apache
container_name: sandbox-wordpress
volumes:
- ./:/var/www/html
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: database
WORDPRESS_DB_NAME: sandbox
WORDPRESS_DB_USER: sandbox
WORDPRESS_DB_PASSWORD: sandbox
database:
image: mariadb:10.1.22
container_name: sandbox-database
expose:
- 3306
environment:
MYSQL_USER: sandbox
MYSQL_PASSWORD: sandbox
MYSQL_DATABASE: sandbox
MYSQL_ROOT_PASSWORD: sandbox
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.