51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
services:
|
|
adguard:
|
|
image: adguard/adguardhome:latest
|
|
container_name: adguardhome
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=${TZ}
|
|
ports:
|
|
- "53:53/tcp"
|
|
- "53:53/udp"
|
|
# - "67:67/udp" # DHCP
|
|
# - "68:68/tcp" # DHCP
|
|
- "3000:3000/tcp"
|
|
volumes:
|
|
- ./data/work:/opt/adguardhome/work
|
|
- ./data/conf:/opt/adguardhome/conf
|
|
networks:
|
|
- traefik-proxy
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=traefik-proxy"
|
|
|
|
# Prod Router
|
|
- "traefik.http.routers.adguard.rule=Host(`adguard.forust.xyz`)"
|
|
- "traefik.http.routers.adguard.entrypoints=websecure"
|
|
- "traefik.http.routers.adguard.middlewares=security-headers"
|
|
- "traefik.http.routers.adguard.service=adguard"
|
|
- "traefik.http.routers.adguard.tls=true"
|
|
- "traefik.http.services.adguard.loadbalancer.server.port=3000"
|
|
|
|
# Local Router
|
|
- "traefik.http.routers.adguard-local.rule=Host(`adguard.workstation.local`) || Host(`adguard.local`)"
|
|
- "traefik.http.routers.adguard-local.entrypoints=websecure"
|
|
- "traefik.http.routers.adguard-local.middlewares=security-headers"
|
|
- "traefik.http.routers.adguard-local.service=adguard"
|
|
- "traefik.http.routers.adguard-local.tls=true"
|
|
|
|
# Dev Router
|
|
- "traefik.http.routers.adguard-dev.rule=Host(`adguard.gigaforust.local`)"
|
|
- "traefik.http.routers.adguard-dev.entrypoints=websecure"
|
|
- "traefik.http.routers.adguard-dev.middlewares=security-headers"
|
|
- "traefik.http.routers.adguard-dev.service=adguard"
|
|
- "traefik.http.routers.adguard-dev.tls=true"
|
|
|
|
- glance.name=adguard
|
|
- glance.url=https://adguard.forust.xyz/
|
|
- glance.description=AdGuard Home is a network-wide software for blocking ads.
|
|
networks:
|
|
traefik-proxy:
|
|
external: true
|