My simple, local repo for Traefik local dev
Warning: Code here is usually experimental. Things change a lot as I try out new workflows. For this reason scripts are not very DRY either.
docker network create traefik_net --gateway=172.26.0.1 --subnet=172.26.0.0/16
- Edit the file /etc/NetworkManager/NetworkManager.conf, and add the line dns=dnsmasq to the [main] section, it will look like this :
[main]
plugins=ifupdown,keyfile
dns=dnsmasq
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
sudo rm /etc/resolv.conf ; sudo ln -s /var/run/NetworkManager/resolv.conf /etc/resolv.conf
echo 'address=/docker/172.26.0.1' | sudo tee /etc/NetworkManager/dnsmasq.d/docker.conf
sudo systemctl reload NetworkManager
You should now be able to ping test.docker
.
# in this repo
docker-compose up
# in project repor
dev_setup docker-compose.override.yml web <host>
# To expose via local tunnel (or ngrok)
expose