haproxy with normal loadbalancer and application load balancer
410
make directory haproxy logsA logsB run.sh webappsA webappsB download or create haproxy.cfg inside the haproxy
download docker-compose.yml
version: '2' services: haproxy: image: jijeesh/haproxy:latest ports: - "80:80" mem_limit: 3048m cpuset: 0,1 volumes: - ./haproxy:/usr/local/etc/haproxy environment: PRODUCTION: "true" tomcatA: image: jijeesh/tomcat8 ports: - "8090:8080" mem_limit: 3048m cpuset: 0,1 volumes: - ./webappsA:/opt/tomcat/webapps - ./logsA:/opt/tomcat/logs environment: CATALINA_OPTS: "$CATALINA_OPTS -Dfile.encoding=UTF-8 -Djavax.servlet.request.encoding=UTF-8" tomcatB: image: jijeesh/tomcat8 ports: - "8091:8080" mem_limit: 3048m cpuset: 0,1 volumes: - ./webappsB:/opt/tomcat/webapps - ./logsB:/opt/tomcat/logs environment: CATALINA_OPTS: "$CATALINA_OPTS -Dfile.encoding=UTF-8 -Djavax.servlet.request.encoding=UTF-8"
run docker-compose.yml using docker-compose up -d
take the url of haproxy
Content type
Image
Digest
Size
54.9 MB
Last updated
over 9 years ago
docker pull jijeesh/haproxy