Skip to content

Instantly share code, notes, and snippets.

@bskjon
Created March 13, 2023 22:59
Show Gist options
  • Save bskjon/2e5fa1a11536a0e929591f33a7ae8868 to your computer and use it in GitHub Desktop.
Save bskjon/2e5fa1a11536a0e929591f33a7ae8868 to your computer and use it in GitHub Desktop.
#! /bin/bash
cat > docker-compose.yaml <<EOL
version: '3.2'
services:
homebridge:
hostname: homebridge
container_name: homebridge
image: oznu/homebridge:latest
restart: always
environment:
- PGID=1000
- PUID=1000
- HOMEBRIDGE_CONFIG_UI=1
- HOMEBRIDGE_CONFIG_UI_PORT=8581
- TZ=Europe/Oslo
volumes:
- ./volumes/homebridge:/homebridge
networks:
- autoNet
networks:
autoNet:
external:
name: netmb
EOL
docker network create -d ipvlan \
--subnet=192.168.1.0/24 \
--gateway=192.168.1.1 \
--ip-range=192.168.1.25/30 \
-o ipvlan_mode=l2 \
-o parent=enp0s31f6.16 netmb
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment