Commit 637a03af authored by nanahira's avatar nanahira

fix

parent 9ce20adf
...@@ -4,3 +4,9 @@ utility_root: /root/utility ...@@ -4,3 +4,9 @@ utility_root: /root/utility
apt_cacher_path: ./apt-cacher-ng/cache apt_cacher_path: ./apt-cacher-ng/cache
apt_mirror: mirrors.tuna.tsinghua.edu.cn apt_mirror: mirrors.tuna.tsinghua.edu.cn
smartdns_image: yousiki/smartdns:x86_64 smartdns_image: yousiki/smartdns:x86_64
# array of addresses
smartdns_address: null
kms_address: null
squid_address: null
apt_cacher_address: null
sniproxy_address: null
version: '2.4' version: '2.4'
services: services:
#freedns:
# restart: always
# image: mycard/freedns-go
# ports:
# - '53:53'
# - '53:53/udp'
# command: "freedns-go -f smartdns-china:53 -c smartdns-tls:53 -l 0.0.0.0:53"
smartdns-tls: smartdns-tls:
restart: always restart: always
image: {{smartdns_image}} image: {{smartdns_image}}
ports: ports:
{% if smartdns_address %}
{% for address in smartdns_address %}
- '{{address}}:55:53'
- '{{address}}:55:53/udp'
- '{{address}}:54:53'
- '{{address}}:54:53/udp'
- '{{address}}:53:53'
- '{{address}}:53:53/udp'
{% endfor %}
{% else %}
- '55:53' - '55:53'
- '55:53/udp' - '55:53/udp'
- '54:53' - '54:53'
- '54:53/udp' - '54:53/udp'
- '53:53' - '53:53'
- '53:53/udp' - '53:53/udp'
{% endif %}
command: -f -x -c /etc/smartdns/smartdns.conf command: -f -x -c /etc/smartdns/smartdns.conf
volumes: volumes:
- ./smartdns/smartdns.conf:/etc/smartdns/smartdns.conf:ro - ./smartdns/smartdns.conf:/etc/smartdns/smartdns.conf:ro
- ./smartdns/china-list:/etc/smartdns/china-list:ro
#smartdns-china: kms:
# restart: always restart: always
# image: {{smartdns_image}} image: teddysun/kms
# ports: ports:
# - '55:53' {% if kms_address %}
# - '55:53/udp' {% for address in kms_address %}
# command: -f -x -c /etc/smartdns/smartdns.conf - '{{address}}:1688:1688'
# volumes: {% endfor %}
# - ./smartdns/china.conf:/etc/smartdns/smartdns.conf:ro {% else %}
- '1688:1688'
{% endif %}
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
squid:
restart: always
image: datadog/squid
ports:
{% if squid_address %}
{% for address in squid_address %}
- '{{address}}:8080:3128'
{% endfor %}
{% else %}
- '8080:3128'
{% endif %}
{% if not web_port_occupied %}
apt-cacher-ng: apt-cacher-ng:
restart: always restart: always
build: apt-cacher-ng-docker build: apt-cacher-ng-docker
dns: 114.114.114.114 dns: 114.114.114.114
ports: ports:
{% if apt_cacher_address %}
{% for address in apt_cacher_address %}
- '{{address}}:80:3142'
{% endfor %}
{% else %}
- '80:3142' - '80:3142'
{% endif %}
volumes: volumes:
- {{apt_cacher_path}}:/var/cache/apt-cacher-ng - {{apt_cacher_path}}:/var/cache/apt-cacher-ng
kms:
restart: always
image: teddysun/kms
ports:
- '1688:1688'
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
sni: sni:
restart: always restart: always
image: nginx image: nginx
ports: ports:
{% if sniproxy_address %}
{% for address in sniproxy_address %}
- '{{address}}:443:443'
{% endfor %}
{% else %}
- '443:443' - '443:443'
{% endif %}
volumes: volumes:
- ./sni/nginx.conf:/etc/nginx/nginx.conf - ./sni/nginx.conf:/etc/nginx/nginx.conf
{% endif %}
squid:
restart: always
image: datadog/squid
ports:
- '8080:3128'
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