Added adguard container name cariable and fixed docker socket proxy permissions to restart container

This commit is contained in:
2025-05-31 17:10:33 +00:00
parent 3d465082a5
commit 820020f23e
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,8 @@ services:
- TZ=Europe/Paris # change to your timezone
- BLOCK_COUNTRIES=CN,RU,IR # choose countries listed IP to block. Full lists here https://github.com/vulnebify/cidre/tree/main/output/cidr/ipv4
- BLOCKLIST_CRON=0 6 * * * # at 6:00 every days
- DOCKER_API_URL=http://socket-proxy-adguard:2375
- DOCKER_API_URL=http://socket-proxy-adguard:2375 # docker socket proxy
- ADGUARD_CONTAINER_NAME=adguardhome # adguard container name
volumes:
- /path/to/adguard/confdir:/adguard
@ -17,6 +18,7 @@ services:
- no-new-privileges:true
environment:
- CONTAINERS=1
- ALLOW_RESTARTS=1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped