Skip to content

Instantly share code, notes, and snippets.

@zubietaroberto
Created May 31, 2017 21:34
Show Gist options
  • Save zubietaroberto/0a77498ea2363fa774e889a9200cf83d to your computer and use it in GitHub Desktop.
Save zubietaroberto/0a77498ea2363fa774e889a9200cf83d to your computer and use it in GitHub Desktop.
Wordpress developing with Docker Compose
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
@zubietaroberto
Copy link
Author

This creates a development evironment for Wordpress using Docker Containers. Volumes and Fixed IPs should be modified according to the host machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment