Skip to content

Instantly share code, notes, and snippets.

@flyingluscas
Last active April 15, 2017 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingluscas/5e39a708bbe309188b1507a5b608a847 to your computer and use it in GitHub Desktop.
Save flyingluscas/5e39a708bbe309188b1507a5b608a847 to your computer and use it in GitHub Desktop.
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