32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
---
|
|
services:
|
|
adguard-cidre:
|
|
build: .
|
|
container_name: adguard-cidre
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Europe/Paris # change to your timezone
|
|
- BLOCK_COUNTRIES=cn,ru # choose countries listed IP to block. Full lists here https://github.com/vulnebify/cidre/tree/main/output/cidr/ipv4
|
|
- BLOCKLIST_CRON_TYPE=daily # daily or weekly
|
|
# if weekly, choose the day
|
|
# - BLOCKLIST_CRON_DAY=mon
|
|
- BLOCKLIST_CRON_TIME=06:00
|
|
- DOCKER_API_URL=http://socket-proxy-adguard:2375 # docker socket proxy
|
|
- ADGUARD_CONTAINER_NAME=adguardhome # adguard container name
|
|
volumes:
|
|
- /path/to/adguard/confdir:/adguard
|
|
|
|
socket-proxy:
|
|
image: lscr.io/linuxserver/socket-proxy:latest
|
|
container_name: socket-proxy-adguard
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
environment:
|
|
- CONTAINERS=1
|
|
- ALLOW_RESTARTS=1
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
restart: unless-stopped
|
|
read_only: true
|
|
tmpfs:
|
|
- /run |