docker-compose.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. ports:
  30. - "51826:51826"
  31. - "8282:8282"
  32. build: homebridge
  33. volumes:
  34. - ./homebridge/start.sh:/root/start.sh
  35. - ./homebridge/config.json:/root/.homebridge/config.json
  36. networks:
  37. - code-network
  38. depends_on:
  39. - "fhem"
  40. mysql:
  41. expose:
  42. - "3306"
  43. - "33060"
  44. ports:
  45. - "3306:3306"
  46. - "33060:33060"
  47. image: mysql/mysql-server:5.7
  48. volumes:
  49. - ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql
  50. - ./mysql/data:/var/lib/mysql
  51. environment:
  52. - MYSQL_RANDOM_ROOT_PASSWORD=yes
  53. networks:
  54. - code-network
  55. networks:
  56. code-network:
  57. driver: bridge