Created
May 31, 2017 21:34
-
-
Save zubietaroberto/0a77498ea2363fa774e889a9200cf83d to your computer and use it in GitHub Desktop.
Wordpress developing with Docker Compose
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: '3' | |
services: | |
wordpress: | |
image: wordpress:4.7.4-php7.1 | |
ports: | |
- 8080:80 | |
environment: | |
WORDPRESS_DB_PASSWORD: bluetide | |
volumes: | |
- "./themes/theme:/var/www/html/wp-content/themes/theme" | |
- "./themes/theme-child:/var/www/html/wp-content/themes/theme-child" | |
networks: | |
default: | |
ipv4_address: 172.20.0.2 | |
mysql: | |
image: mariadb | |
environment: | |
MYSQL_ROOT_PASSWORD: bluetide | |
networks: | |
default: | |
ipv4_address: 172.20.0.100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This creates a development evironment for Wordpress using Docker Containers. Volumes and Fixed IPs should be modified according to the host machine.