Skip to content

Instantly share code, notes, and snippets.

@hallister
Forked from x99percent/docker-compose.yaml
Last active September 26, 2019 03:34
Show Gist options
  • Save hallister/15f92fca0a4019cf4d29dedcfcae2dd6 to your computer and use it in GitHub Desktop.
Save hallister/15f92fca0a4019cf4d29dedcfcae2dd6 to your computer and use it in GitHub Desktop.
version: '2.1'
services:
homeassistant:
container_name: homeassistant
image: homeassistant/home-assistant:0.99.1
network_mode: "host"
volumes:
- /opt/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
devices:
- /dev/ttyUSB0:/dev/ttyUSB0:rwm
- /dev/ttyUSB1:/dev/ttyUSB1:rwm
restart: on-failure
depends_on:
# influxdb:
# condition: service_healthy
mosquitto:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8123"]
interval: 30s
timeout: 10s
retries: 6
node-red:
container_name: node-red
image: nodered/node-red-docker:v8
ports:
- 1880:1880
- 80:80
volumes:
- /opt/node-red:/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: "no" # because the exit code(s) are wrong
depends_on:
mosquitto:
condition: service_started
mqtt-bridge:
condition: service_started
homeassistant:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:1880"]
interval: 30s
timeout: 10s
retries: 5
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto
user: "1000:1000"
ports:
- 1883:1883
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/mosquitto:/mosquitto/config:ro
- /opt/mosquitto:/mosquitto/data
restart: on-failure
mqtt-bridge:
container_name: mqtt-bridge
build:
context: https://github.com/stjohnjohnson/smartthings-mqtt-bridge.git
dockerfile: Dockerfile-rpi
ports:
- 8080:8080
volumes:
- /opt/mqtt-bridge:/config
restart: on-failure
depends_on:
homeassistant:
condition: service_healthy
portainer:
container_name: portainer
image: portainer/portainer
ports:
- 9000:9000
volumes:
- /opt/portainer:/data:rw
- /var/run/docker.sock:/var/run/docker.sock
restart: "no" # because the exit code(s) are wrong
organizr:
container_name: organizr
image: lsioarmhf/organizr
ports:
- 443:443
volumes:
- /opt/organizr:/config:rw
- /etc/letsencrypt:/etc/letsencrypt:ro
environment:
- PGID=1000
- PUID=1000
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1"]
interval: 30s
timeout: 10s
retries: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment