fhem-compose.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. version: '2'
  2. services:
  3. fhem:
  4. restart: unless-stopped
  5. container_name: fhem-core
  6. expose:
  7. - "8083"
  8. - "7072"
  9. ports:
  10. - "8083:8083"
  11. - "7072:7072"
  12. build: fhem
  13. privileged: true
  14. volumes:
  15. - ./fhem/core/:/opt/fhem/
  16. environment:
  17. - PGID=1000
  18. - PUID=1000
  19. networks:
  20. - fhem-network
  21. depends_on:
  22. - "mysql"
  23. - "mqtt"
  24. # homebridge:
  25. # restart: always
  26. # image: oznu/homebridge
  27. # volumes:
  28. # - ./homebridge/config.json:/homebridge/config.json
  29. # - ./homebridge/package.json:/homebridge/package.json
  30. # environment:
  31. # - TZ=Europe/Berlin
  32. # - PGID=1000
  33. # - PUID=1000
  34. # network_mode: host
  35. # depends_on:
  36. # - "fhem"
  37. # habridge:
  38. # restart: always
  39. # build: habridge
  40. # network_mode: host
  41. tradfri:
  42. restart: unless-stopped
  43. container_name: fhem-jtradfri
  44. expose:
  45. - "1505"
  46. ports:
  47. - "1505:1505"
  48. build: tradfribridge
  49. volumes:
  50. - ./tradfribridge/jtradfri.conf:/opt/jtradfri/jtradfri.conf
  51. networks:
  52. - fhem-network
  53. mysql:
  54. restart: unless-stopped
  55. container_name: fhem-mysql
  56. expose:
  57. - "3306"
  58. - "33060"
  59. ports:
  60. - "3306:3306"
  61. - "33060:33060"
  62. image: mysql/mysql-server:5.7
  63. volumes:
  64. - ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql
  65. - ./mysql/data:/var/lib/mysql
  66. environment:
  67. - MYSQL_RANDOM_ROOT_PASSWORD=yes
  68. networks:
  69. - fhem-network
  70. mqtt:
  71. restart: unless-stopped
  72. container_name: fhem-mqtt
  73. expose:
  74. - "1883"
  75. - "9001"
  76. ports:
  77. - "1883:1883"
  78. - "9001:9001"
  79. image: toke/mosquitto
  80. networks:
  81. - fhem-network
  82. volumes:
  83. - ./mqtt/config/:/mqtt/config/
  84. - ./mqtt/log/:/mqtt/log/
  85. - ./mqtt/data/:/mqtt/data/
  86. # nodered:
  87. # restart: unless-stopped
  88. # container_name: fhem-nodered
  89. # expose:
  90. # - "1880"
  91. # ports:
  92. # - "1880:1880"
  93. # image: nodered/node-red-docker:0.18.4
  94. # volumes:
  95. # - ./nodered/data/:/data/
  96. # networks:
  97. # - fhem-network
  98. # depends_on:
  99. # - "mqtt"
  100. networks:
  101. fhem-network:
  102. driver: bridge