Difference between revisions of "Docker-compose haproxy"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
- https://blog.hypriot.com/post/docker-compose-nodejs-haproxy/ | - https://blog.hypriot.com/post/docker-compose-nodejs-haproxy/ | ||
− | + | ||
+ | - https://www.baeldung.com/ops/docker-compose-expose-vs-ports | ||
+ | |||
+ | - https://www.baeldung.com/ops/docker-compose-expose-vs-ports | ||
+ | |||
+ | https://hub.docker.com/_/haproxy | ||
+ | |||
+ | ``` | ||
+ | weba: | ||
+ | build: . | ||
+ | expose: | ||
+ | - 80 | ||
+ | |||
+ | webb: | ||
+ | build: . | ||
+ | expose: | ||
+ | - 80 | ||
+ | |||
+ | webc: | ||
+ | build: . | ||
+ | expose: | ||
+ | - 80 | ||
+ | |||
+ | haproxy: | ||
+ | image: hypriot/rpi-haproxy | ||
+ | volumes: | ||
+ | - haproxy:/haproxy-override | ||
+ | links: | ||
+ | - weba | ||
+ | - webb | ||
+ | - webc | ||
+ | ports: | ||
+ | - "80:80" | ||
+ | - "70:70" | ||
+ | |||
+ | expose: | ||
+ | - "80" | ||
+ | - "70" | ||
+ | ``` |
Latest revision as of 19:28, 31 August 2022
- https://blog.hypriot.com/post/docker-compose-nodejs-haproxy/
- https://www.baeldung.com/ops/docker-compose-expose-vs-ports
- https://www.baeldung.com/ops/docker-compose-expose-vs-ports
https://hub.docker.com/_/haproxy
weba: build: . expose: - 80 webb: build: . expose: - 80 webc: build: . expose: - 80 haproxy: image: hypriot/rpi-haproxy volumes: - haproxy:/haproxy-override links: - weba - webb - webc ports: - "80:80" - "70:70" expose: - "80" - "70"