Last active
April 15, 2017 03:13
-
-
Save flyingluscas/5e39a708bbe309188b1507a5b608a847 to your computer and use it in GitHub Desktop.
Example Docker Compose for Wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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