when binding to local ports, don't also route via traefik-docker labels
This commit is contained in:
parent
30c7cfecc9
commit
b86a3a7a5a
1 changed files with 13 additions and 7 deletions
|
@ -20,13 +20,16 @@ services:
|
|||
{% if qux_fe_host_bind_port %}
|
||||
ports:
|
||||
- "{{ qux_fe_host_bind_port ~ ':8082' }}"
|
||||
{% endif %}
|
||||
depends_on:
|
||||
- qux-be
|
||||
{% else %}
|
||||
expose:
|
||||
- "8082"
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.qux-fe.entryPoints: "web_https"
|
||||
traefik.http.routers.qux-fe.rule: "Host(`{{ qux_domain }}`)"
|
||||
{% endif %}
|
||||
depends_on:
|
||||
- qux-be
|
||||
qux-be:
|
||||
restart: always
|
||||
container_name: quant-ux-backend
|
||||
|
@ -59,15 +62,18 @@ services:
|
|||
{% if qux_ws_host_bind_port %}
|
||||
ports:
|
||||
- "{{ qux_ws_host_bind_port ~ ':8086' }}"
|
||||
{% else %}
|
||||
expose:
|
||||
- "8086"
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.qux-ws.entryPoints: "web_https"
|
||||
traefik.http.routers.qux-ws.rule: "Host(`ws.{{ qux_domain }}`)"
|
||||
{% endif %}
|
||||
links:
|
||||
- qux-be
|
||||
depends_on:
|
||||
- qux-be
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.qux-ws.entryPoints: "web_https"
|
||||
traefik.http.routers.qux-ws.rule: "Host(`ws.{{ qux_domain }}`)"
|
||||
|
||||
networks:
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue