Update homebridge.yml

This commit is contained in:
Michael
2020-04-10 20:27:45 +01:00
committed by GitHub
parent c813c9c5dd
commit 5e0a5c9de3

View File

@@ -13,6 +13,10 @@
- name: 'Set Known Facts' - name: 'Set Known Facts'
set_fact: set_fact:
pgrole: 'homebridge' pgrole: 'homebridge'
intport: '51826'
extport: '51826'
intport2: '8084'
extport2: '8084'
image: 'oznu/homebridge:latest' image: 'oznu/homebridge:latest'
# CORE (MANDATORY) ############################################################ # CORE (MANDATORY) ############################################################
@@ -25,7 +29,7 @@
pg_labels: pg_labels:
traefik.frontend.auth.forward.address: '{{gauth}}' traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true' traefik.enable: 'true'
traefik.port: '8080' traefik.port: '{{intport2}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}}{{tldset}}{{cname}}' traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}}{{tldset}}{{cname}}'
traefik.frontend.headers.SSLHost: '{{domain.stdout}}' traefik.frontend.headers.SSLHost: '{{domain.stdout}}'
traefik.frontend.headers.SSLRedirect: 'true' traefik.frontend.headers.SSLRedirect: 'true'
@@ -52,7 +56,7 @@
PUID: '1000' PUID: '1000'
PGID: '1000' PGID: '1000'
HOMEBRIDGE_CONFIG_UI: '1' HOMEBRIDGE_CONFIG_UI: '1'
HOMEBRIDGE_CONFIG_UI_PORT: '8086' HOMEBRIDGE_CONFIG_UI_PORT: '{{intport2}}'
PACKAGES: 'ffmpeg' PACKAGES: 'ffmpeg'
# MAIN DEPLOYMENT ############################################################# # MAIN DEPLOYMENT #############################################################
@@ -64,6 +68,9 @@
volumes: '{{pg_volumes}}' volumes: '{{pg_volumes}}'
env: '{{pg_env}}' env: '{{pg_env}}'
restart_policy: unless-stopped restart_policy: unless-stopped
network_mode: host networks:
- name: plexguide
aliases:
- '{{pgrole}}'
state: started state: started
labels: '{{pg_labels}}' labels: '{{pg_labels}}'