Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save llity/569c3fe2c85759fc2bed240f4fa46895 to your computer and use it in GitHub Desktop.
Save llity/569c3fe2c85759fc2bed240f4fa46895 to your computer and use it in GitHub Desktop.
mikrotik container adguard home script installation
/system/device-mode/update container=yes
/interface veth add address=172.17.0.1/24 gateway=172.17.0.254 name=agh
/interface bridge add name=dockers
/interface bridge port add bridge=dockers interface=agh
/ip address add address=172.17.0.254/24 interface=dockers network=172.17.0.0
/ip firewall nat add action=masquerade chain=srcnat
/container config set registry-url=https://registry-1.docker.io tmpdir=/disk1/tmp
/container mounts add dst=/opt/adguardhome/conf name=agh_conf src=/disk1/conf/agh
/container add remote-image=adguard/adguardhome:latest interface=agh logging=yes mounts=agh_conf start-on-boot=yes workdir=/opt/adguardhome/work root-dir="/disk1/agh" cmd="-c /opt/adguardhome/conf/AdGuardHome.yaml -h 0.0.0.0 -w /opt/adguardhome/work" dns=8.8.8.8 entrypoint=/opt/adguardhome/AdGuardHome
/container start number=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment