docker-compose.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/log/:/opt/fhem/log
  16. - ./fhem/fhem.cfg:/opt/fhem/fhem.cfg
  17. - ./fhem/FHEM/99_myUtils.pm:/opt/fhem/FHEM/99_myUtils.pm
  18. - ./fhem/contrib/dblog/db.conf:/opt/fhem/contrib/dblog/db.conf
  19. networks:
  20. - code-network
  21. # homebridge:
  22. # expose:
  23. # - "51826"
  24. # ports:
  25. # - "51826:51826"
  26. # build: homebridge
  27. # networks:
  28. # - code-network
  29. #
  30. mysql:
  31. expose:
  32. - "3306"
  33. - "33060"
  34. ports:
  35. - "3306:3306"
  36. - "33060:33060"
  37. image: mysql/mysql-server:5.7
  38. volumes:
  39. - ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql
  40. - ./mysql/data:/var/lib/mysql
  41. environment:
  42. - MYSQL_ROOT_PASSWORD=adgbciBOZjwYXeATg
  43. networks:
  44. - code-network
  45. networks:
  46. code-network:
  47. driver: bridge