mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 08:27:19 +00:00
29 lines
820 B
YAML
29 lines
820 B
YAML
---
|
|
- name: Create Homebridge Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ homebridge_config_directory }}"
|
|
|
|
- name: Homebridge Docker Container
|
|
docker_container:
|
|
name: homebridge
|
|
image: oznu/homebridge
|
|
pull: true
|
|
volumes:
|
|
- "{{ homebridge_config_directory }}:/homebridge"
|
|
network_mode: host
|
|
env:
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
PGID: "{{ homebridge_group_id }}"
|
|
PUID: "{{ homebridge_user_id }}"
|
|
HOMEBRIDGE_CONFIG_UI: "1"
|
|
HOMEBRIDGE_CONFIG_UI_PORT: "8087"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "homebridge"
|
|
traefik.frontend.rule: "Host:homebridge.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ homebridge_available_externally }}"
|
|
traefik.port: "8087"
|