Fix Traefik forwarding ports (shouldn't be configurable)

This commit is contained in:
David Stephens 2020-01-18 18:16:24 +00:00
parent 3fdb963aa6
commit 6295d80a49
39 changed files with 42 additions and 44 deletions

View file

@ -784,5 +784,5 @@ ubooquity_available_externally: "false"
ubooquity_data_directory: "{{ docker_home }}/ubooquity" ubooquity_data_directory: "{{ docker_home }}/ubooquity"
ubooquity_user_id: "0" ubooquity_user_id: "0"
ubooquity_group_id: "0" ubooquity_group_id: "0"
ubooquity_port_a: "2202" ubooquity_port_webui: "2202"
ubooquity_port_b: "2203" ubooquity_port_admin: "2203"

View file

@ -26,5 +26,5 @@
traefik.backend: "airsonic" traefik.backend: "airsonic"
traefik.frontend.rule: "Host:airsonic.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:airsonic.{{ ansible_nas_domain }}"
traefik.enable: "{{ airsonic_available_externally }}" traefik.enable: "{{ airsonic_available_externally }}"
traefik.port: "{{ airsonic_port }}" traefik.port: "4040"

View file

@ -27,4 +27,4 @@
traefik.backend: "bazarr" traefik.backend: "bazarr"
traefik.frontend.rule: "Host:bazarr.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:bazarr.{{ ansible_nas_domain }}"
traefik.enable: "{{ bazarr_available_externally }}" traefik.enable: "{{ bazarr_available_externally }}"
traefik.port: "{{ bazarr_port }}" traefik.port: "6767"

View file

@ -23,7 +23,7 @@
labels: labels:
traefik.web.frontend.rule: "Host:bitwarden.{{ ansible_nas_domain }}" traefik.web.frontend.rule: "Host:bitwarden.{{ ansible_nas_domain }}"
traefik.enable: "{{ bitwarden_available_externally }}" traefik.enable: "{{ bitwarden_available_externally }}"
traefik.web.port: "bitwarden_port_a" traefik.web.port: "80"
traefik.hub.frontend.rule: "Host:bitwarden.{{ ansible_nas_domain }};Path:/notifications/hub" traefik.hub.frontend.rule: "Host:bitwarden.{{ ansible_nas_domain }};Path:/notifications/hub"
traefik.hub.port: "bitwarden_port_b" traefik.hub.port: "bitwarden_port_b"
traefik.hub.protocol: "ws" traefik.hub.protocol: "ws"

View file

@ -25,5 +25,5 @@
traefik.backend: "calibre" traefik.backend: "calibre"
traefik.frontend.rule: "Host:calibre.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:calibre.{{ ansible_nas_domain }}"
traefik.enable: "{{ calibre_available_externally }}" traefik.enable: "{{ calibre_available_externally }}"
traefik.port: "{{ calibre_port }} " traefik.port: "8083"
memory: 1g memory: 1g

View file

@ -26,4 +26,4 @@
traefik.backend: "cloudcmd" traefik.backend: "cloudcmd"
traefik.frontend.rule: "Host:cloudcmd.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:cloudcmd.{{ ansible_nas_domain }}"
traefik.enable: "{{ cloudcmd_available_externally }}" traefik.enable: "{{ cloudcmd_available_externally }}"
traefik.port: "{{ cloudcmd_port }}" traefik.port: "8000"

View file

@ -29,4 +29,4 @@
traefik.backend: "couchpotato" traefik.backend: "couchpotato"
traefik.frontend.rule: "Host:couchpotato.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:couchpotato.{{ ansible_nas_domain }}"
traefik.enable: "{{ couchpotato_available_externally }}" traefik.enable: "{{ couchpotato_available_externally }}"
traefik.port: "{{ couchpotato_port }}" traefik.port: "5050"

View file

@ -24,4 +24,4 @@
traefik.backend: "duplicati" traefik.backend: "duplicati"
traefik.frontend.rule: "Host:duplicati.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:duplicati.{{ ansible_nas_domain }}"
traefik.enable: "{{ duplicati_available_externally }}" traefik.enable: "{{ duplicati_available_externally }}"
traefik.port: "{{ duplicati_port }}" traefik.port: "8200"

View file

@ -28,4 +28,4 @@
traefik.backend: "emby" traefik.backend: "emby"
traefik.frontend.rule: "Host:emby.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:emby.{{ ansible_nas_domain }}"
traefik.enable: "{{ emby_available_externally }}" traefik.enable: "{{ emby_available_externally }}"
traefik.port: "{{ emby_port_https }}" traefik.port: "8096"

View file

@ -53,4 +53,4 @@
traefik.backend: "firefly" traefik.backend: "firefly"
traefik.frontend.rule: "Host:firefly.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:firefly.{{ ansible_nas_domain }}"
traefik.enable: "{{ firefly_available_externally }}" traefik.enable: "{{ firefly_available_externally }}"
traefik.port: "{{ firefly_port }}" traefik.port: "80"

View file

@ -71,4 +71,4 @@
traefik.backend: "gitea" traefik.backend: "gitea"
traefik.frontend.rule: "Host:gitea.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:gitea.{{ ansible_nas_domain }}"
traefik.enable: "{{ gitea_available_externally }}" traefik.enable: "{{ gitea_available_externally }}"
traefik.port: "{{ gitea_port_http }}" traefik.port: "3000"

View file

@ -20,4 +20,4 @@
traefik.backend: "glances" traefik.backend: "glances"
traefik.frontend.rule: "Host:glances.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:glances.{{ ansible_nas_domain }}"
traefik.enable: "{{ glances_available_externally }}" traefik.enable: "{{ glances_available_externally }}"
traefik.port: "{{ glances_port_one }}" traefik.port: "61208"

View file

@ -55,4 +55,4 @@
traefik.backend: "guacamole" traefik.backend: "guacamole"
traefik.frontend.rule: "Host:guacamole.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:guacamole.{{ ansible_nas_domain }}"
traefik.enable: "{{ guacamole_available_externally }}" traefik.enable: "{{ guacamole_available_externally }}"
traefik.port: "{{ guacamole_port }}" traefik.port: "8080"

View file

@ -44,4 +44,4 @@
traefik.backend: "heimdall" traefik.backend: "heimdall"
traefik.frontend.rule: "Host:heimdall.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:heimdall.{{ ansible_nas_domain }}"
traefik.enable: "{{ heimdall_available_externally }}" traefik.enable: "{{ heimdall_available_externally }}"
traefik.port: "{{ heimdall_port_http }}" traefik.port: "80"

View file

@ -12,8 +12,6 @@
pull: true pull: true
volumes: volumes:
- "{{ homeassistant_data_directory }}/config:/config:rw" - "{{ homeassistant_data_directory }}/config:/config:rw"
ports:
- "{{ homeassistant_port }}:8123"
network_mode: host network_mode: host
restart_policy: unless-stopped restart_policy: unless-stopped
env: env:
@ -22,6 +20,6 @@
traefik.backend: "homeassistant" traefik.backend: "homeassistant"
traefik.frontend.rule: "Host:homeassistant.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:homeassistant.{{ ansible_nas_domain }}"
traefik.enable: "{{ homeassistant_available_externally }}" traefik.enable: "{{ homeassistant_available_externally }}"
traefik.port: "{{ homeassistant_port }}" traefik.port: "8123"
traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.SSLRedirect: "true"
memory: 1g memory: 1g

View file

@ -26,4 +26,4 @@
traefik.backend: "homebridge" traefik.backend: "homebridge"
traefik.frontend.rule: "Host:homebridge.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:homebridge.{{ ansible_nas_domain }}"
traefik.enable: "{{ homebridge_available_externally }}" traefik.enable: "{{ homebridge_available_externally }}"
traefik.port: "{{ homebridge_port }}" traefik.port: "8087"

View file

@ -23,4 +23,4 @@
traefik.backend: "jackett" traefik.backend: "jackett"
traefik.frontend.rule: "Host:jackett.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:jackett.{{ ansible_nas_domain }}"
traefik.enable: "{{ jackett_available_externally }}" traefik.enable: "{{ jackett_available_externally }}"
traefik.port: "{{ jackett_port }}" traefik.port: "9117"

View file

@ -27,4 +27,4 @@
traefik.backend: "jellyfin" traefik.backend: "jellyfin"
traefik.frontend.rule: "Host:jellyfin.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:jellyfin.{{ ansible_nas_domain }}"
traefik.enable: "{{ jellyfin_available_externally }}" traefik.enable: "{{ jellyfin_available_externally }}"
traefik.port: "{{ jellyfin_port_https }}" traefik.port: "8096"

View file

@ -42,4 +42,4 @@
traefik.backend: "joomla" traefik.backend: "joomla"
traefik.frontend.rule: "Host: joomla.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host: joomla.{{ ansible_nas_domain }}"
traefik.enable: "{{ joomla_available_externally }}" traefik.enable: "{{ joomla_available_externally }}"
traefik.port: "{{ joomla_port }}" traefik.port: "80"

View file

@ -25,4 +25,4 @@
traefik.backend: "lidarr" traefik.backend: "lidarr"
traefik.frontend.rule: "Host:lidarr.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:lidarr.{{ ansible_nas_domain }}"
traefik.enable: "{{ lidarr_available_externally }}" traefik.enable: "{{ lidarr_available_externally }}"
traefik.port: "{{ lidarr_port }}" traefik.port: "8686"

View file

@ -12,7 +12,7 @@
MINIDLNA_MEDIA_DIR1: "/media1" MINIDLNA_MEDIA_DIR1: "/media1"
MINIDLNA_MEDIA_DIR2: "/media2" MINIDLNA_MEDIA_DIR2: "/media2"
MINIDLNA_FRIENDLY_NAME: "{{ minidlna_friendly_name }}" MINIDLNA_FRIENDLY_NAME: "{{ minidlna_friendly_name }}"
MINIDLNA_PORT: "{{ minidlna_port }}" MINIDLNA_PORT: "8201"
network_mode: host network_mode: host
restart_policy: unless-stopped restart_policy: unless-stopped
memory: 1g memory: 1g

View file

@ -39,4 +39,4 @@
traefik.backend: "miniflux" traefik.backend: "miniflux"
traefik.frontend.rule: "Host:miniflux.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:miniflux.{{ ansible_nas_domain }}"
traefik.enable: "{{ miniflux_available_externally }}" traefik.enable: "{{ miniflux_available_externally }}"
traefik.port: "{{ miniflux_port }}" traefik.port: "8080

View file

@ -29,4 +29,4 @@
traefik.backend: "netdata" traefik.backend: "netdata"
traefik.frontend.rule: "Host:netdata.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:netdata.{{ ansible_nas_domain }}"
traefik.enable: "{{ netdata_available_externally }}" traefik.enable: "{{ netdata_available_externally }}"
traefik.port: "{{ netdata_port }}" traefik.port: "19999"

View file

@ -45,4 +45,4 @@
traefik.backend: "nextcloud" traefik.backend: "nextcloud"
traefik.frontend.rule: "Host:nextcloud.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:nextcloud.{{ ansible_nas_domain }}"
traefik.enable: "{{ nextcloud_available_externally }}" traefik.enable: "{{ nextcloud_available_externally }}"
traefik.port: "{{ nextcloud_port }}" traefik.port: "80"

View file

@ -26,4 +26,4 @@
traefik.backend: "nzbget" traefik.backend: "nzbget"
traefik.frontend.rule: "Host:nzbget.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:nzbget.{{ ansible_nas_domain }}"
traefik.enable: "{{ nzbget_available_externally }}" traefik.enable: "{{ nzbget_available_externally }}"
traefik.port: "{{ nzbget_port }}" traefik.port: "6789"

View file

@ -48,4 +48,4 @@
traefik.backend: "openhab" traefik.backend: "openhab"
traefik.frontend.rule: "Host:openhab.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:openhab.{{ ansible_nas_domain }}"
traefik.enable: "{{ openhab_available_externally }}" traefik.enable: "{{ openhab_available_externally }}"
traefik.port: "{{ openhab_port_https }}" traefik.port: "7777"

View file

@ -23,4 +23,4 @@
traefik.backend: "portainer" traefik.backend: "portainer"
traefik.frontend.rule: "Host:portainer.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:portainer.{{ ansible_nas_domain }}"
traefik.enable: "{{ portainer_available_externally }}" traefik.enable: "{{ portainer_available_externally }}"
traefik.port: "{{ portainer_port }}" traefik.port: "9000"

View file

@ -28,4 +28,4 @@
traefik.backend: "pyload" traefik.backend: "pyload"
traefik.frontend.rule: "Host:pyload.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:pyload.{{ ansible_nas_domain }}"
traefik.enable: "{{ pyload_available_externally }}" traefik.enable: "{{ pyload_available_externally }}"
traefik.port: "{{ pyload_port }}" traefik.port: "8000"

View file

@ -27,4 +27,4 @@
traefik.backend: "radarr" traefik.backend: "radarr"
traefik.frontend.rule: "Host:radarr.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:radarr.{{ ansible_nas_domain }}"
traefik.enable: "{{ radarr_available_externally }}" traefik.enable: "{{ radarr_available_externally }}"
traefik.port: "{{ radarr_port }}" traefik.port: "7878"

View file

@ -34,4 +34,4 @@
traefik.backend: "sickchill" traefik.backend: "sickchill"
traefik.frontend.rule: "Host:sickchill.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:sickchill.{{ ansible_nas_domain }}"
traefik.enable: "{{ sickchill_available_externally }}" traefik.enable: "{{ sickchill_available_externally }}"
traefik.port: "{{ sickchill_port }}" traefik.port: "8081"

View file

@ -27,4 +27,4 @@
traefik.backend: "sonarr" traefik.backend: "sonarr"
traefik.frontend.rule: "Host:sonarr.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:sonarr.{{ ansible_nas_domain }}"
traefik.enable: "{{ sonarr_available_externally }}" traefik.enable: "{{ sonarr_available_externally }}"
traefik.port: "{{ sonarr_port }}" traefik.port: "8989"

View file

@ -71,4 +71,4 @@
traefik.backend: "grafana" traefik.backend: "grafana"
traefik.frontend.rule: "Host:grafana.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:grafana.{{ ansible_nas_domain }}"
traefik.enable: "{{ grafana_available_externally }}" traefik.enable: "{{ grafana_available_externally }}"
traefik.port: "{{ grafana_port }}" traefik.port: "3000"

View file

@ -28,4 +28,4 @@
traefik.backend: "tautulli" traefik.backend: "tautulli"
traefik.frontend.rule: "Host:tautulli.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:tautulli.{{ ansible_nas_domain }}"
traefik.enable: "{{ tautulli_available_externally }}" traefik.enable: "{{ tautulli_available_externally }}"
traefik.port: "{{ tautulli_port }}" traefik.port: "8181"

View file

@ -30,5 +30,5 @@
traefik.backend: "thelounge" traefik.backend: "thelounge"
traefik.frontend.rule: "Host:thelounge.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:thelounge.{{ ansible_nas_domain }}"
traefik.enable: "{{ thelounge_available_externally }}" traefik.enable: "{{ thelounge_available_externally }}"
traefik.port: "thelounge_port_two" traefik.port: "9000"

View file

@ -31,4 +31,4 @@
traefik.backend: "transmission" traefik.backend: "transmission"
traefik.frontend.rule: "Host:transmission.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:transmission.{{ ansible_nas_domain }}"
traefik.enable: "{{ transmission_available_externally }}" traefik.enable: "{{ transmission_available_externally }}"
traefik.port: "{{ transmission_webui_port }}" traefik.port: "9091"

View file

@ -46,4 +46,4 @@
traefik.backend: "transmission-openvpn" traefik.backend: "transmission-openvpn"
traefik.frontend.rule: "Host:transmission-openvpn.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:transmission-openvpn.{{ ansible_nas_domain }}"
traefik.enable: "{{ transmission_with_openvpn_available_externally }}" traefik.enable: "{{ transmission_with_openvpn_available_externally }}"
traefik.port: "{{ transmission_openvpn_webui_port }}" traefik.port: "9091"

View file

@ -22,11 +22,11 @@
PGID: "{{ ubooquity_group_id|quote }}" PGID: "{{ ubooquity_group_id|quote }}"
MAXMEM: "1024" MAXMEM: "1024"
ports: ports:
- "{{ ubooquity_port_a }}:2202" - "{{ ubooquity_port_webui }}:2202"
- "{{ ubooquity_port_b }}:2203" - "{{ ubooquity_port_admin }}:2203"
restart_policy: unless-stopped restart_policy: unless-stopped
labels: labels:
traefik.backend: "ubooquity" traefik.backend: "ubooquity"
traefik.frontend.rule: "Host:ubooquity.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:ubooquity.{{ ansible_nas_domain }}"
traefik.enable: "{{ ubooquity_available_externally }}" traefik.enable: "{{ ubooquity_available_externally }}"
traefik.port: "{{ ubooquity_port_a }}" traefik.port: "2202"

View file

@ -23,6 +23,6 @@
traefik.backend: "wallabag" traefik.backend: "wallabag"
traefik.frontend.rule: "Host:wallabag.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:wallabag.{{ ansible_nas_domain }}"
traefik.enable: "{{ wallabag_available_externally }}" traefik.enable: "{{ wallabag_available_externally }}"
traefik.port: "{{ wallabag_port }}" traefik.port: "80"
traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.headers.SSLRedirect: "true"
memory: 1g memory: 1g

View file

@ -25,4 +25,4 @@
traefik.backend: "znc" traefik.backend: "znc"
traefik.frontend.rule: "Host:znc.{{ ansible_nas_domain }}" traefik.frontend.rule: "Host:znc.{{ ansible_nas_domain }}"
traefik.enable: "{{ znc_available_externally }}" traefik.enable: "{{ znc_available_externally }}"
traefik.port: "{{ znc_port }}" traefik.port: "6677"