Guest User

Untitled

a guest
Dec 31st, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. version: '3.4'
  2. services:
  3. homeassistant:
  4. container_name: homeassistant
  5. user: "1000:1000"
  6. ports:
  7. - "8123:8123"
  8. - "5353:5353" # for mDNS service discovery
  9. - "1900:1900" # for upnp service discovery
  10. image: homeassistant/home-assistant:latest
  11. depends_on:
  12. - mqtt
  13. - postgres
  14. environment:
  15. POSTGRES_USER: ${POSTGRES_USER}
  16. volumes:
  17. - ./config:/config
  18. - /etc/localtime:/etc/localtime:ro
  19.  
  20. appdaemon:
  21. container_name: appdaemon
  22. user: "1000:1000"
  23. image: acockburn/appdaemon:latest
  24. depends_on:
  25. - homeassistant
  26. volumes:
  27. - ./appdaemon_config:/conf:ro
  28. - /etc/localtime:/etc/localtime:ro
  29.  
  30. entrypoint:
  31. - appdaemon
  32. - -c
  33. - /conf
  34.  
  35. # command: [ "-s", "2018-12-25 08:14:00", "-i", "30" ]
  36.  
  37.  
  38. mqtt:
  39. container_name: MQTT
  40. restart: unless-stopped
  41. image: eclipse-mosquitto
  42. volumes:
  43. - ./mosquitto_config:/mosquitto/config:ro
  44. - mosquitto_persistence_database:/mosquitto/data
  45. - /etc/localtime:/etc/localtime:ro
  46. ports:
  47. - "1883:1883"
  48. - "8883:8883"
  49. - "9001:9001"
  50.  
  51. postgres:
  52. image: "postgres:11-alpine"
  53. user: "1000:1000"
  54. volumes:
  55. - "./postgres_db:/var/lib/postgresql/data"
  56. - "/etc/passwd:/etc/passwd:ro"
  57. environment:
  58. POSTGRES_USER: ${POSTGRES_USER}
  59. POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
  60. POSTGRES_DB: ${POSTGRES_DB}
  61. restart: always
  62. expose:
  63. - "5432"
  64.  
  65. rhasspy:
  66. image: "synesthesiam/rhasspy-server:amd64"
  67. restart: unless-stopped
  68. container_name: rhasspy-server
  69. environment:
  70. RHASSPY_PROFILES: "/profiles"
  71. volumes:
  72. - "./rhasspy_config:/profiles"
  73. ports:
  74. - "12101:12101"
  75. devices:
  76. - "/dev/snd:/dev/snd"
  77. depends_on:
  78. - homeassistant
  79.  
  80. volumes:
  81. mosquitto_persistence_database:
  82. postgres_db:
  83.  
  84. networks:
  85. default:
  86. ipam:
  87. driver: default
  88. config:
  89. - subnet: 172.18.0.0/16
Add Comment
Please, Sign In to add comment