Created
December 31, 2018 09:14
-
-
Save gpbenton/3aa73cc3eed0d783b3c8be45c1ee4c3f to your computer and use it in GitHub Desktop.
docker-compose for home assistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
homeassistant: | |
container_name: homeassistant | |
user: "1000:1000" | |
ports: | |
- "8123:8123" | |
- "5353:5353" # for mDNS service discovery | |
- "1900:1900" # for upnp service discovery | |
image: homeassistant/home-assistant:latest | |
depends_on: | |
- mqtt | |
- postgres | |
environment: | |
POSTGRES_USER: ${POSTGRES_USER} | |
volumes: | |
- ./config:/config | |
- /etc/localtime:/etc/localtime:ro | |
appdaemon: | |
container_name: appdaemon | |
user: "1000:1000" | |
image: acockburn/appdaemon:latest | |
depends_on: | |
- homeassistant | |
volumes: | |
- ./appdaemon_config:/conf:ro | |
- /etc/localtime:/etc/localtime:ro | |
entrypoint: | |
- appdaemon | |
- -c | |
- /conf | |
# command: [ "-s", "2018-12-25 08:14:00", "-i", "30" ] | |
mqtt: | |
container_name: MQTT | |
restart: unless-stopped | |
image: eclipse-mosquitto | |
volumes: | |
- ./mosquitto_config:/mosquitto/config:ro | |
- mosquitto_persistence_database:/mosquitto/data | |
- /etc/localtime:/etc/localtime:ro | |
ports: | |
- "1883:1883" | |
- "8883:8883" | |
- "9001:9001" | |
postgres: | |
image: "postgres:11-alpine" | |
user: "1000:1000" | |
volumes: | |
- "./postgres_db:/var/lib/postgresql/data" | |
- "/etc/passwd:/etc/passwd:ro" | |
environment: | |
POSTGRES_USER: ${POSTGRES_USER} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | |
POSTGRES_DB: ${POSTGRES_DB} | |
restart: always | |
expose: | |
- "5432" | |
rhasspy: | |
image: "synesthesiam/rhasspy-server:amd64" | |
restart: unless-stopped | |
container_name: rhasspy-server | |
environment: | |
RHASSPY_PROFILES: "/profiles" | |
volumes: | |
- "./rhasspy_config:/profiles" | |
ports: | |
- "12101:12101" | |
devices: | |
- "/dev/snd:/dev/snd" | |
depends_on: | |
- homeassistant | |
volumes: | |
mosquitto_persistence_database: | |
postgres_db: | |
networks: | |
default: | |
ipam: | |
driver: default | |
config: | |
- subnet: 172.18.0.0/16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment