Skip to content

Instantly share code, notes, and snippets.

@GeoffreyEmery
Last active June 7, 2016 21:07
Show Gist options
  • Save GeoffreyEmery/783722cea3604ea4f772debf3baf9470 to your computer and use it in GitHub Desktop.
Save GeoffreyEmery/783722cea3604ea4f772debf3baf9470 to your computer and use it in GitHub Desktop.
haproxy vanrish docker
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example
wordpress:
image: wordpress
links:
- db:mysql
ports:
- 81:80
varnish:
image: 'docker pull cloudposse/varnish'
environment:
- VARNISH_BACKEND_HOST=backend
- VARNISH_BACKEND_PORT=80
- 'VIRTUAL_HOST=example.com,www.example.com'
links:
- wordpress:backend
ports:
- '8080:80'
lb:
image: 'dockercloud/haproxy'
links:
- varnish
ports:
- '80:80'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment