docker-compose.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. version: '2'
  2. services:
  3. fhem:
  4. expose:
  5. - "8083"
  6. - "7072"
  7. ports:
  8. - "8083:8083"
  9. - "7072:7072"
  10. build: fhem
  11. privileged: true
  12. devices:
  13. - "/dev/ttyUSB0:/dev/ttyUSB0"
  14. volumes:
  15. - ./fhem/start.sh:/opt/fhem/start.sh
  16. - ./fhem/log/:/opt/fhem/log
  17. - ./fhem/data/fhem.cfg:/opt/fhem/fhem.cfg
  18. - ./fhem/data/controls.txt:/opt/fhem/controls.txt
  19. - ./fhem/data/FHEM/99_myUtils.pm:/opt/fhem/FHEM/99_myUtils.pm
  20. - ./fhem/data/contrib/dblog/db.conf:/opt/fhem/contrib/dblog/db.conf
  21. networks:
  22. - code-network
  23. depends_on:
  24. - "mysql"
  25. homebridge:
  26. expose:
  27. - "51826"
  28. - "8282"
  29. - "5353"
  30. ports:
  31. - "51826:51826"
  32. - "8282:8282"
  33. - "5353:5353"
  34. build: homebridge
  35. volumes:
  36. - ./homebridge/start.sh:/root/start.sh
  37. - ./homebridge/config.json:/root/.homebridge/config.json
  38. networks:
  39. - code-network
  40. depends_on:
  41. - "fhem"
  42. mysql:
  43. expose:
  44. - "3306"
  45. - "33060"
  46. ports:
  47. - "3306:3306"
  48. - "33060:33060"
  49. image: mysql/mysql-server:5.7
  50. volumes:
  51. - ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql
  52. - ./mysql/data:/var/lib/mysql
  53. environment:
  54. - MYSQL_RANDOM_ROOT_PASSWORD=yes
  55. networks:
  56. - code-network
  57. networks:
  58. code-network:
  59. driver: bridge