diff --git a/ansible/roles/stack-proxy/templates/stack-proxy.yml b/ansible/roles/stack-proxy/templates/stack-proxy.yml index eee187d9721e0b8eefed5119dabccf1489024ae1..cd155ba14a2e41b90d90de2e20cd05f94747bad5 100644 --- a/ansible/roles/stack-proxy/templates/stack-proxy.yml +++ b/ansible/roles/stack-proxy/templates/stack-proxy.yml @@ -3,11 +3,18 @@ version: '3.3' services: proxy: image: "{{hub_org}}/{{image_name}}:{{image_tag}}" + # This is a workaround for remote ip address is not visible nginx ports: - - "443:443" - - "80:80" + - mode: host + target: 80 + published: 80 + protocol: TCP + - mode: host + target: 443 + published: 443 + protocol: TCP deploy: - replicas: {{ proxy_replicas }} + mode: global resources: reservations: memory: "{{ proxy_reservation_memory }}"