Raspi docker-compose.yml
version: '3' services: fhem: image: fhem/fhem:latest #restart: always restart: unless-stopped ports: - "8083:8083" - "7072:7072" volumes: - ./fhem/core/:/opt/fhem/ networks: default: ipv4_address: 192.168.31.1 devices: - "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL01XC9Y-if00-port0:/dev/onewire3" - "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_DAE003E5-if00-port0:/dev/onewire2" - "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_DAE003E6-if00-port0:/dev/onewire1" - "/dev/ttyAMA0:/dev/ttyAMA0" environment: FHEM_UID: 1000 FHEM_GID: 1000 TIMEOUT: 10 RESTART: 1 TELNETPORT: 7072 TZ: Europe/Berlin depends_on: - "mysql" - "mqtt" habridge: restart: always image: habridge/ha-bridge-raspberrypi3 volumes: - ./habridge/data/:/ha-bridge/data - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro networks: default: ipv4_address: 192.168.31.2
- homebridge:
- restart: always
- image: oznu/homebridge:raspberry-pi
- volumes:
- - ./homebridge:/homebridge
- environment:
- - TZ=Europe/Berlin
- - PGID=1000
- - PUID=1000
- - HOMEBRIDGE_CONFIG_UI=1
- - HOMEBRIDGE_CONFIG_UI_PORT=8081
- #network_mode: host
- networks:
- default:
- ipv4_address: 192.168.31.3
- depends_on:
- - "fhem"
mysql: restart: always expose: - "3306" - "33060" ports: - "3306:3306" - "33060:33060" image: hypriot/rpi-mysql volumes: - ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql - ./mysql/data:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=xxx - MYSQL_DATABASE=fhem - MYSQL_USER=fhemuser - MYSQL_PASSWORD=xxx networks: default: ipv4_address: 192.168.31.4 mqtt: restart: always expose: - "1883" - "9001" ports: - "1883:1883" - "9001:9001" image: pascaldevink/rpi-mosquitto networks: default: ipv4_address: 192.168.31.5 volumes: - ./mqtt/config/:/mqtt/config/ - ./mqtt/log/:/mqtt/log/ - ./mqtt/data/:/mqtt/data/ nodered: restart: always expose: - "1880" ports: - "1880:1880" image: elzekool/rpi-nodered volumes: - ./nodered/data/:/root/.node-red/ networks: default: ipv4_address: 192.168.31.6 depends_on: - "mqtt" networks: default: external: name: mymacvlannetwork