From a81303683010e9dbe891923f3b942dac4dcc9e1f Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Fri, 15 Jul 2016 16:31:53 +0300 Subject: [PATCH] Updated haproxy container, removed virtual host, added templates for ssl --- docker-compose.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6421404..4d1f8cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,10 +34,11 @@ services: - onlyoffice-redis - onlyoffice-rabbitmq environment: - - VIRTUAL_HOST="ws://\*/doc/*" - BALANCE=uri depth 3 - HTTP_CHECK=HEAD /healthcheck - EXTRA_SETTINGS=http-check expect status 200 + # Uncomment the string below to redirect HTTP request to HTTPS request. + #- FORCE_SSL=true stdin_open: true tty: true restart: always @@ -45,23 +46,27 @@ services: - onlyoffice expose: - '80' - - '443' volumes_from: - onlyoffice-documentserver-data onlyoffice-haproxy: container_name: onlyoffice-haproxy - image: dockercloud/haproxy:1.2.1 + image: dockercloud/haproxy:1.5.1 depends_on: - onlyoffice-documentserver environment: - MODE=http + # Uncomment the string below to specify the path of ssl certificates + #- CERT_FOLDER=/certs/ stdin_open: true tty: true links: - onlyoffice-documentserver volumes: - /var/run/docker.sock:/var/run/docker.sock + # Uncomment the string below to map a ssl certificate from host + # to the proxy container + #- /app/onlyoffice/DocumentServer/data/certs/onlyoffice.pem:/certs/cert1.pem restart: always networks: - onlyoffice