update docker-compose.yml
This commit is contained in:
parent
277475be39
commit
994faa77e1
@ -27,6 +27,6 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0600'
|
||||
when: deploy_adguard_config is not empty
|
||||
when: deploy_adguard_config != {}
|
||||
notify:
|
||||
- systemctl-restart-adguard
|
||||
|
@ -1,4 +1,7 @@
|
||||
---
|
||||
# task/main file for deploy_adguard
|
||||
- name: "Import prerequisites.yml"
|
||||
ansible.builtin.include_tasks: prerequisites.yml
|
||||
ansible.builtin.include_tasks: prerequisites.yml
|
||||
|
||||
- name: "Import configure.yml"
|
||||
ansible.builtin.include_tasks: configure.yml
|
@ -0,0 +1,56 @@
|
||||
---
|
||||
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
|
Loading…
Reference in New Issue
Block a user