Raspi docker-compose.yml: Unterschied zwischen den Versionen
Krueuw (Diskussion | Beiträge) (Raspi docker-compose.yml) |
Krueuw (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung |
||
Zeile 109: | Zeile 109: | ||
external: | external: | ||
name: mymacvlannetwork | name: mymacvlannetwork | ||
<small><code>version: '3'</code></small> | |||
<small><code>services:</code></small> | |||
<small><code> fhem:</code></small> | |||
<small><code> image: fhem/fhem:latest</code></small> | |||
<small><code> #restart: always</code></small> | |||
<small><code> restart: unless-stopped</code></small> | |||
<small><code> ports:</code></small> | |||
<small><code> - "8083:8083"</code></small> | |||
<small><code> - "7072:7072"</code></small> | |||
<small><code> volumes:</code></small> | |||
<small><code> - ./fhem/core/:/opt/fhem/</code></small> | |||
<small><code> networks:</code></small> | |||
<small><code> default:</code></small> | |||
<small><code> ipv4_address: 192.168.31.1</code></small> | |||
<small><code> devices:</code></small> | |||
<small><code> - "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL01XC9Y-if00-port0:/dev/onewire3"</code></small> | |||
<small><code> - "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_DAE003E5-if00-port0:/dev/onewire2"</code></small> | |||
<small><code> - "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_DAE003E6-if00-port0:/dev/onewire1"</code></small> | |||
<small><code> - "/dev/ttyAMA0:/dev/ttyAMA0"</code></small> | |||
<small><code> environment:</code></small> | |||
<small><code> FHEM_UID: 1000</code></small> | |||
<small><code> FHEM_GID: 1000</code></small> | |||
<small><code> TIMEOUT: 10</code></small> | |||
<small><code> RESTART: 1</code></small> | |||
<small><code> TELNETPORT: 7072</code></small> | |||
<small><code> TZ: Europe/Berlin</code></small> | |||
<small><code> depends_on:</code></small> | |||
<small><code> - "mysql"</code></small> | |||
<small><code> - "mqtt"</code></small> | |||
<small><code> habridge:</code></small> | |||
<small><code> restart: always</code></small> | |||
<small><code> image: habridge/ha-bridge-raspberrypi3</code></small> | |||
<small><code> volumes:</code></small> | |||
<small><code> - ./habridge/data/:/ha-bridge/data</code></small> | |||
<small><code> - /etc/localtime:/etc/localtime:ro</code></small> | |||
<small><code> - /etc/timezone:/etc/timezone:ro</code></small> | |||
<small><code> networks:</code></small> | |||
<small><code> default:</code></small> | |||
<small><code> ipv4_address: 192.168.31.2</code></small> | |||
<small><code># homebridge:</code></small> | |||
<small><code># restart: always</code></small> | |||
<small><code># image: oznu/homebridge:raspberry-pi</code></small> | |||
<small><code># volumes:</code></small> | |||
<small><code># - ./homebridge:/homebridge</code></small> | |||
<small><code># environment:</code></small> | |||
<small><code># - TZ=Europe/Berlin</code></small> | |||
<small><code># - PGID=1000</code></small> | |||
<small><code># - PUID=1000</code></small> | |||
<small><code># - HOMEBRIDGE_CONFIG_UI=1</code></small> | |||
<small><code># - HOMEBRIDGE_CONFIG_UI_PORT=8081</code></small> | |||
<small><code># #network_mode: host</code></small> | |||
<small><code># networks:</code></small> | |||
<small><code># default:</code></small> | |||
<small><code># ipv4_address: 192.168.31.3</code></small> | |||
<small><code># depends_on:</code></small> | |||
<small><code># - "fhem"</code></small> | |||
<small><code> mysql:</code></small> | |||
<small><code> restart: always</code></small> | |||
<small><code> expose:</code></small> | |||
<small><code> - "3306"</code></small> | |||
<small><code> - "33060"</code></small> | |||
<small><code> ports:</code></small> | |||
<small><code> - "3306:3306"</code></small> | |||
<small><code> - "33060:33060"</code></small> | |||
<small><code> image: hypriot/rpi-mysql</code></small> | |||
<small><code> volumes:</code></small> | |||
<small><code> - ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql</code></small> | |||
<small><code> - ./mysql/data:/var/lib/mysql</code></small> | |||
<small><code> environment:</code></small> | |||
<small><code> - MYSQL_ROOT_PASSWORD=xxx</code></small> | |||
<small><code> - MYSQL_DATABASE=fhem</code></small> | |||
<small><code> - MYSQL_USER=fhemuser</code></small> | |||
<small><code> - MYSQL_PASSWORD=xxx</code></small> | |||
<small><code> networks:</code></small> | |||
<small><code> default:</code></small> | |||
<small><code> ipv4_address: 192.168.31.4</code></small> | |||
<small><code> mqtt:</code></small> | |||
<small><code> restart: always</code></small> | |||
<small><code> expose:</code></small> | |||
<small><code> - "1883"</code></small> | |||
<small><code> - "9001"</code></small> | |||
<small><code> ports:</code></small> | |||
<small><code> - "1883:1883"</code></small> | |||
<small><code> - "9001:9001"</code></small> | |||
<small><code> image: pascaldevink/rpi-mosquitto</code></small> | |||
<small><code> networks:</code></small> | |||
<small><code> default:</code></small> | |||
<small><code> ipv4_address: 192.168.31.5</code></small> | |||
<small><code> volumes:</code></small> | |||
<small><code> - ./mqtt/config/:/mqtt/config/</code></small> | |||
<small><code> - ./mqtt/log/:/mqtt/log/</code></small> | |||
<small><code> - ./mqtt/data/:/mqtt/data/</code></small> | |||
<small><code> nodered:</code></small> | |||
<small><code> restart: always</code></small> | |||
<small><code> expose:</code></small> | |||
<small><code> - "1880"</code></small> | |||
<small><code> ports:</code></small> | |||
<small><code> - "1880:1880"</code></small> | |||
<small><code> image: elzekool/rpi-nodered</code></small> | |||
<small><code> volumes:</code></small> | |||
<small><code> - ./nodered/data/:/root/.node-red/</code></small> | |||
<small><code> networks:</code></small> | |||
<small><code> default:</code></small> | |||
<small><code> ipv4_address: 192.168.31.6</code></small> | |||
<small><code> depends_on:</code></small> | |||
<small><code> - "mqtt"</code></small> | |||
<small><code>networks:</code></small> | |||
<small><code> default:</code></small> | |||
<small><code> external:</code></small> | |||
<small><code> name: mymacvlannetwork</code></small> |
Version vom 15. April 2023, 13:44 Uhr
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
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