Skip to content

Instantly share code, notes, and snippets.

@ryzy
Created March 13, 2016 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryzy/d8e05dbd5c04bd71ff6c to your computer and use it in GitHub Desktop.
Save ryzy/d8e05dbd5c04bd71ff6c to your computer and use it in GitHub Desktop.
Docker Compose with HAProxy and Nginx
# Launch Nginx backend server
nginx:
image: million12/nginx
ports:
- '4080:80'
- '4443:443'
environment:
- NGINX_GENERATE_DEFAULT_VHOST=true
# Launch HAProxy
haproxy:
image: million12/haproxy
ports:
- '8080:80'
- '8443:443'
links:
- nginx:web.server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment