Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
U
Utility
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Utility
Commits
637a03af
Commit
637a03af
authored
Jun 05, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9ce20adf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
33 deletions
+57
-33
defaults/main.yml
defaults/main.yml
+6
-0
templates/docker-compose.yml.j2
templates/docker-compose.yml.j2
+51
-33
No files found.
defaults/main.yml
View file @
637a03af
...
@@ -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
templates/docker-compose.yml.j2
View file @
637a03af
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'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment