Created
July 11, 2019 19:20
-
-
Save kidhasmoxy/d55f0b50adb01e0e0f98a4f305db43fb to your computer and use it in GitHub Desktop.
multicast relay docker compose example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
multicast-relay: | |
container_name: multicast-relay | |
image: kidhasmoxy/multicast-relay | |
hostname: mdnsrelay | |
networks: | |
iot_network: | |
# ipv4_address: 192.168.20.240 # Not needed if you use a tight ipam | |
lan_network: | |
# ipv4_address: 192.168.1.240 # Not needed if you use a tight ipam | |
restart: unless-stopped | |
# ssdpUnicastAddr should be on IoT vlan to allow for simple firewall config (as return queries can go to pretty random ports) | |
command: --foreground --interfaces eth0 eth1 --wait --verbose --relay 224.0.0.251:80 255.255.255.255:80 --ssdpUnicastAddr 192.168.20.240 | |
networks: | |
lan_network: | |
driver: macvlan | |
driver_opts: | |
parent: eth1 # <-- using default network | |
ipam: | |
config: | |
- subnet: 192.168.1.0/24 # <-- Update | |
gateway: 192.168.1.1 # <-- Update | |
ip_range: 192.168.1.240/32 # <-- Update | |
iot_network: | |
driver: macvlan | |
driver_opts: | |
parent: eth1.20 # <-- Update to Vlan ID | |
ipam: | |
config: | |
- subnet: 192.168.20.0/24 # <-- Update | |
gateway: 192.168.20.1 # <-- Update | |
ip_range: 192.168.20.240/32 # <-- Update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment