hunterjm / hassio-addons

Control your Xbox One from your Home Assistant device.
MIT License
55 stars 50 forks source link

Docker Compose version? #50

Open mike391 opened 4 years ago

mike391 commented 4 years ago

Is it possible to create a docker-compose version of those of u without Hass.io can use this awesome addon too?

webdjoe commented 4 years ago

You can use the dockerfile from the Xbox-python-rest repo and just have compose build it. I have it running that way. If you plan to use the device discovery part of it (not needed for the HA component), you have to set the network mode as host

On Wed, Jul 31, 2019 at 10:33 AM mike391 notifications@github.com wrote:

Is it possible to create a docker-compose version of those of u without Hass.io can use this awesome addon too?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hunterjm/hassio-addons/issues/50?email_source=notifications&email_token=AB6JJBV3CIKSD3WJNDU3SWLQCGPD3A5CNFSM4IIHLFR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HCSWJIA, or mute the thread https://github.com/notifications/unsubscribe-auth/AB6JJBWGNBFNXEYJYO3BC4LQCGPD3ANCNFSM4IIHLFRQ .

mike391 commented 4 years ago

Got it working: Docker-compose.yaml for future reference (ill make a PR if you guys want):

version: '2'

services:
  smartglass:
    network_mode: "host"
    restart: unless-stopped
    container_name: smartglass
    image: openxbox/xbox-smartglass-rest
    volumes:
      - /srv/dev-disk-by-label-RAID/Docker/.config/smartglass:/root/.local/share/xbox