Futro-docker-compose.yml

Aus FHEMWiki
Version vom 17. April 2023, 10:03 Uhr von Ph1959de (Diskussion | Beiträge) (Kurze Erläuterung und Rück-Link eingefügt; YAML mit syntaxhighlight formatiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

YAML Definition zu dem auf der Seite S7 Beispielkonfiguration vorgestellten Raspi-Alternative x64-ThinClient integrieren:

version: '2'

services:
    fhem:
        restart: always
        ports:
            - "8083:8083"
            - "7072:7072"
        image: fhem/fhem:latest
        volumes:
            - ./fhem/core/:/opt/fhem/
        networks:
            default:
                ipv4_address: 192.168.29.1
        devices:
          #   - "/dev/ttyUSB0:/dev/ttyUSB0"
            - "/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0:/dev/ttyS5"
            - "/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"
        environment:
            FHEM_UID: 1000
            FHEM_GID: 1000
            TIMEOUT: 10
            RESTART: 1
            TELNETPORT: 7072
            TZ: Europe/Berlin
        depends_on:
            - "mysql"
            - "mqtt"

    mysql:
        restart: always
        expose:
            - "3306"
            - "33060"
        ports:
            - "3306:3306"
            - "33060:33060"
        image: mysql/mysql-server:5.7
        volumes:
            - ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql
            - ./mysql/data:/var/lib/mysql
        environment:
            - MYSQL_DATABASE=fhem
            - MYSQL_USER=fhemuser
            - MYSQL_PASSWORD=2jRHkcdw3WuNSQAcX7
            - MYSQL_ROOT_PASSWORD=KQW8jcxkjr4CpSMaz
            - MYSQL_RANDOM_ROOT_PASSWORD=false
            - MYSQL_ONETIME_PASSWORD=false
        networks:
            default:
                ipv4_address: 192.168.1.4

    mqtt:
        restart: always
        expose:
            - "1883"
            - "9001"
        ports:
            - "1883:1883"
            - "9001:9001"
        image: eclipse-mosquitto:2.0.15
        networks:
             default:
                 ipv4_address: 192.168.1.5
        volumes:
            - ./mqtt/config/:/mosquitto/config/
            - ./mqtt/log/:/mosquitto/log/
            - ./mqtt/data/:/mosquitto/data/
networks:
    default:
        external:
            name: mymacvlannetwork