first commit

This commit is contained in:
AntonP8O 2024-03-12 19:36:57 +10:00
commit 3a6959d74d
4 changed files with 42 additions and 0 deletions

0
.env.example Normal file
View File

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
conf/
work/
.env

4
README.md Normal file
View File

@ -0,0 +1,4 @@
Clone this repo
cp env.example .env
set you domain in .env
Run docker-compose up -d

35
docker-compose.yml Normal file
View File

@ -0,0 +1,35 @@
version: '3'
services:
adguard:
image: adguard/adguardhome:latest
container_name: adguard
restart: unless-stopped
ports:
- 53:53/tcp
- 53:53/udp
- 67:67/udp
- 68:68/tcp
- 68:68/udp
networks:
webproxy:
# ipv4_address: 172.19.0.5
volumes:
- /etc/localtime:/etc/localtime:ro
- ./work:/opt/adguardhome/work
- ./conf:/opt/adguardhome/conf
labels:
- "traefik.enable=true"
- "traefik.http.routers.adguard.entrypoints=http"
- "traefik.http.routers.adguard.rule=Host(`$DOMAIN`)" # change with your own domain/sub domain
- "traefik.http.middlewares.adguard-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.adguard.middlewares=adguard-https-redirect"
- "traefik.http.routers.adguard-secure.entrypoints=https"
- "traefik.http.routers.adguard-secure.rule=Host(`$DOMAIN`)" # change with your own domain/sub domain
- "traefik.http.routers.adguard-secure.tls=true"
- "traefik.http.routers.adguard-secure.tls.certresolver=regru"
- "traefik.http.routers.adguard-secure.service=adguard"
- "traefik.http.services.adguard.loadbalancer.server.port=80"
- "traefik.docker.network=proxy"
networks:
webproxy:
external: true