Skip to content

Instantly share code, notes, and snippets.

@arevindh
Last active June 16, 2024 17:02
Show Gist options
  • Save arevindh/a59f71172b5ddba50934dd088a73a9b1 to your computer and use it in GitHub Desktop.
Save arevindh/a59f71172b5ddba50934dd088a73a9b1 to your computer and use it in GitHub Desktop.
sudo docker network create -d macvlan --subnet=192.168.1.0/22 --gateway=192.168.1.1 -o parent=eth0 --attachable local-nw

There create up docker compose

services:
adguard:
image: adguard/adguardhome:latest
container_name: adguard
volumes:
- ./work:/opt/adguardhome/work
- ./conf:/opt/adguardhome/conf
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "68:68/udp"
- "80:80/tcp"
- "443:443/tcp"
- "443:443/udp"
- "3000:3000/tcp"
- "853:853/tcp"
- "784:784/udp"
- "853:853/udp"
- "8853:8853/udp"
- "5443:5443/tcp"
- "5443:5443/udp"
networks:
mcvlan-nw:
ipv4_address: 192.168.1.254
environment:
- TZ=Europe/Berlin
cap_add:
- NET_ADMIN
restart: unless-stopped # Added restart option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment