deploy_adguard/templates/docker-compose.yml.j2

56 lines
1.1 KiB
Django/Jinja

---
version: '3.9'
services:
adguard:
image: adguard/adguardhome:latest
ports:
- "53:53/tcp"
- "53:53/udp"
{% if deploy_adguard_enable_admin_interface %}
- "80:80/tcp"
- "443:443/tcp"
- "3000:3000/tcp"
{% endif %}
{% if deploy_adguard_enable_dhcp %}
- "67:67/udp"
- "68:68/tcp"
- "68:68/udp"
{% endif %}
{% if deploy_adguard_enable_doh %}
- "443:443/udp"
{% endif %}
{% if deploy_adguard_enable_dot %}
- "853:853/tcp"
{% endif %}
{% if deploy_adguard_enable_doq %}
- "784:784/udp"
- "8853:8853/udp"
- "853:853/udp"
{% endif %}
{% if deploy_adguard_enable_dnscrypt %}
- "5443:5443/tcp"
- "5443:5443/udp"
{% endif %}
volumes:
- conf:/opt/adguardhome/conf
- data:/opt/adguardhome/work
networks:
- internal
networks:
internal:
driver: bridge
volumes:
conf:
driver_opts:
o: bind
device: {{ deploy_adguard_directory }}/conf
type: none
data:
driver_opts:
o: bind
device: {{ deploy_adguard_directory }}/data
type: none