Clone the repo using:
$ git clone https://github.com/m47ik/selfhosted.git $HOME/selfhosted
Create the home_net network with:
$ docker network create -d macvlan --subnet=192.168.0.0/24 --gateway=192.168.0.1 -o parent=eth0 home_net
I use this method so that I can assign static IPs to containers. You can set the subnet and gateway as per your network.
Also this is not compulsory, you can create the home_net
as docker network and us internal ips. Simply remove the following part from docker-compose manifests.
networks:
home_net:
ipv4_address: 192.168.xx.xx
- Docker
- docker-compose