This repository has been archived on 2025-11-16. You can view files and clone it, but cannot push or open issues or pull requests.
Files
swarm-production/stacks/core/adguard/stack.yml
2025-11-04 13:18:53 +00:00

44 lines
1.1 KiB
YAML

services:
adguard:
image: adguard/adguardhome:latest
ports:
- target: 53
published: 53
protocol: tcp
mode: host
- target: 53
published: 53
protocol: udp
mode: host
- target: 3000
published: 3000
mode: host
volumes:
- /home/doc/projects/swarm-data/appdata/adguard/work:/opt/adguardhome/work
- /home/doc/projects/swarm-data/appdata/adguard/conf:/opt/adguardhome/conf
networks:
- homelab
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.hostname == p0
resources:
limits:
memory: 512M
cpus: '0.5'
reservations:
memory: 256M
labels:
- "traefik.enable=true"
- "traefik.http.routers.adguard.rule=Host(`dns.home.frostlabs.me`)"
- "traefik.http.routers.adguard.entrypoints=websecure"
- "traefik.http.routers.adguard.tls=true"
- "traefik.http.routers.adguard.service=adguard"
- "traefik.http.services.adguard.loadbalancer.server.port=3000"
networks:
homelab:
external: true