Created
March 13, 2016 13:22
-
-
Save ryzy/d8e05dbd5c04bd71ff6c to your computer and use it in GitHub Desktop.
Docker Compose with HAProxy and Nginx
This file contains 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
# 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