Skip to content

Instantly share code, notes, and snippets.

@gemmadlou
Last active October 15, 2016 21:08
Show Gist options
  • Select an option

  • Save gemmadlou/7cead8861a254da6950f3f0d102a6c3d to your computer and use it in GitHub Desktop.

Select an option

Save gemmadlou/7cead8861a254da6950f3f0d102a6c3d to your computer and use it in GitHub Desktop.
Wordpress Multisite With Docker
version: "2"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
db:
container_name: wp-multisite-wp
image: mysql:5.7
volumes:
- "./.data/db:/var/lib/mysql"
restart: always
ports:
- "5001:3306"
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
container_name: wp-multisite
ports:
- 5000:80
depends_on:
- db
image: wordpress:latest
links:
- db
restart: always
volumes:
- /c/Users/Gemma/workspace/bignorthevents.com:/var/www/html
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: wordpress
VIRTUAL_HOST: bignorthevents.dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment