http://www.thegeekstuff.com/2016/04/docker-compose-up-stop-rm/
Last active
October 15, 2016 21:08
-
-
Save gemmadlou/7cead8861a254da6950f3f0d102a6c3d to your computer and use it in GitHub Desktop.
Wordpress Multisite With Docker
This file contains hidden or 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: | |
| 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