Commit 637a03af authored by nanahira's avatar nanahira

fix

parent 9ce20adf
......@@ -4,3 +4,9 @@ utility_root: /root/utility
apt_cacher_path: ./apt-cacher-ng/cache
apt_mirror: mirrors.tuna.tsinghua.edu.cn
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'
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:
restart: always
image: {{smartdns_image}}
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/udp'
- '54:53'
- '54:53/udp'
- '53:53'
- '53:53/udp'
{% endif %}
command: -f -x -c /etc/smartdns/smartdns.conf
volumes:
- ./smartdns/smartdns.conf:/etc/smartdns/smartdns.conf:ro
- ./smartdns/china-list:/etc/smartdns/china-list:ro
#smartdns-china:
# restart: always
# image: {{smartdns_image}}
# ports:
# - '55:53'
# - '55:53/udp'
# command: -f -x -c /etc/smartdns/smartdns.conf
# volumes:
# - ./smartdns/china.conf:/etc/smartdns/smartdns.conf:ro
kms:
restart: always
image: teddysun/kms
ports:
{% if kms_address %}
{% for address in kms_address %}
- '{{address}}:1688:1688'
{% endfor %}
{% 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:
restart: always
build: apt-cacher-ng-docker
dns: 114.114.114.114
ports:
{% if apt_cacher_address %}
{% for address in apt_cacher_address %}
- '{{address}}:80:3142'
{% endfor %}
{% else %}
- '80:3142'
{% endif %}
volumes:
- {{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:
restart: always
image: nginx
ports:
{% if sniproxy_address %}
{% for address in sniproxy_address %}
- '{{address}}:443:443'
{% endfor %}
{% else %}
- '443:443'
{% endif %}
volumes:
- ./sni/nginx.conf:/etc/nginx/nginx.conf
squid:
restart: always
image: datadog/squid
ports:
- '8080:3128'
{% endif %}
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