Commit 407658cb authored by keshavprasadms's avatar keshavprasadms Committed by rjshrjndrn
Browse files

fix: revert host network changes

Showing with 62 additions and 9 deletions
+62 -9
......@@ -3,16 +3,9 @@ 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:
- mode: host
target: 80
published: 80
protocol: TCP
- mode: host
target: 443
published: 443
protocol: TCP
- "443:443"
- "80:80"
deploy:
mode: global
resources:
......
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:
- mode: host
target: 80
published: 80
protocol: TCP
- mode: host
target: 443
published: 443
protocol: TCP
deploy:
replicas: {{ proxy_replicas }}
resources:
reservations:
memory: "{{ proxy_reservation_memory }}"
limits:
memory: "{{ proxy_limit_memory }}"
update_config:
parallelism: 1
delay: 30s
secrets:
{# Skip copying ssls for no domain configs #}
{% if proto=='https' %}
- site.key
- site.crt
{% endif %}
- prom_admin_creds
configs:
- source: nginx.conf
target: /etc/nginx/nginx.conf
- source: proxy-default.conf
target: /etc/nginx/conf.d/default.conf
networks:
- application_default
secrets:
{# Skip copying ssls for no domain configs #}
{% if proto=='https' %}
site.key:
external: true
site.crt:
external: true
{% endif %}
prom_admin_creds:
external: true
configs:
nginx.conf:
external: true
proxy-default.conf:
external: true
networks:
application_default:
external: true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment