Commit d5c2e9c5 authored by nanahira's avatar nanahira

fix smartdns port

parent 1c3d1f4f
...@@ -7,6 +7,10 @@ smartdns_image: yousiki/smartdns:x86_64 ...@@ -7,6 +7,10 @@ smartdns_image: yousiki/smartdns:x86_64
web_port_occupied: false web_port_occupied: false
# array of addresses # array of addresses
smartdns_address: null smartdns_address: null
smartdns_ports:
- 53
- 54
- 55
kms_address: null kms_address: null
squid_address: null squid_address: null
apt_cacher_address: null apt_cacher_address: null
......
...@@ -6,20 +6,16 @@ services: ...@@ -6,20 +6,16 @@ services:
ports: ports:
{% if smartdns_address %} {% if smartdns_address %}
{% for address in smartdns_address %} {% for address in smartdns_address %}
- '{{address}}:55:53' {% for port in smartdns_ports %}
- '{{address}}:55:53/udp' - '{{address}}:{{port}}:53'
- '{{address}}:54:53' - '{{address}}:{{port}}:53/udp'
- '{{address}}:54:53/udp' {% endfor %}
- '{{address}}:53:53'
- '{{address}}:53:53/udp'
{% endfor %} {% endfor %}
{% else %} {% else %}
- '55:53' {% for port in smartdns_ports %}
- '55:53/udp' - '{{port}}:53'
- '54:53' - '{{port}}:53/udp'
- '54:53/udp' {% endfor %}
- '53:53'
- '53:53/udp'
{% endif %} {% endif %}
command: -f -x -c /etc/smartdns/smartdns.conf command: -f -x -c /etc/smartdns/smartdns.conf
volumes: volumes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment