first commit
This commit is contained in:
commit
3a6959d74d
0
.env.example
Normal file
0
.env.example
Normal file
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
conf/
|
||||
work/
|
||||
.env
|
||||
4
README.md
Normal file
4
README.md
Normal 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
35
docker-compose.yml
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user