1
0
Fork 0

don't expose ports unless requested

This commit is contained in:
Julian Foad 2024-07-24 13:53:45 +01:00
parent 70aa1a7eaa
commit 30c7cfecc9

View file

@ -17,8 +17,10 @@ services:
links: links:
- mongo - mongo
- qux-be - qux-be
{% if qux_fe_host_bind_port %}
ports: ports:
- "{{ qux_fe_host_bind_port ~ ':8082' if qux_fe_host_bind_port else '8082' }}" - "{{ qux_fe_host_bind_port ~ ':8082' }}"
{% endif %}
depends_on: depends_on:
- qux-be - qux-be
labels: labels:
@ -54,8 +56,10 @@ services:
environment: environment:
- QUX_SERVER=http://quant-ux-backend:8080/ - QUX_SERVER=http://quant-ux-backend:8080/
- QUX_SERVER_PORT=8086 - QUX_SERVER_PORT=8086
{% if qux_ws_host_bind_port %}
ports: ports:
- "{{ qux_ws_host_bind_port ~ ':8086' if qux_ws_host_bind_port else '8086' }}" - "{{ qux_ws_host_bind_port ~ ':8086' }}"
{% endif %}
links: links:
- qux-be - qux-be
depends_on: depends_on: