docker-compose.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/backup/:/opt/fhem/backup
  18. - ./fhem/data/fhem.cfg:/opt/fhem/fhem.cfg
  19. - ./fhem/data/controls.txt:/opt/fhem/controls.txt
  20. - ./fhem/data/FHEM/99_myUtils.pm:/opt/fhem/FHEM/99_myUtils.pm
  21. - ./fhem/data/contrib/dblog/db.conf:/opt/fhem/contrib/dblog/db.conf
  22. networks:
  23. - code-network
  24. depends_on:
  25. - "mysql"
  26. homebridge:
  27. expose:
  28. - "51826"
  29. - "8282"
  30. - "5353"
  31. ports:
  32. - "51826:51826"
  33. - "8282:8282"
  34. - "5353:5353"
  35. build: homebridge
  36. volumes:
  37. - ./homebridge/start.sh:/root/start.sh
  38. - ./homebridge/config.json:/root/.homebridge/config.json
  39. networks:
  40. - code-network
  41. depends_on:
  42. - "fhem"
  43. mysql:
  44. expose:
  45. - "3306"
  46. - "33060"
  47. ports:
  48. - "3306:3306"
  49. - "33060:33060"
  50. image: mysql/mysql-server:5.7
  51. volumes:
  52. - ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql
  53. - ./mysql/data:/var/lib/mysql
  54. environment:
  55. - MYSQL_RANDOM_ROOT_PASSWORD=yes
  56. networks:
  57. - code-network
  58. networks:
  59. code-network:
  60. driver: bridge