Commit fa54c992 authored by nanahira's avatar nanahira

add ntp

parent f6b15241
...@@ -16,6 +16,7 @@ kms_address: null ...@@ -16,6 +16,7 @@ kms_address: null
squid_address: null squid_address: null
apt_cacher_address: null apt_cacher_address: null
sniproxy_address: null sniproxy_address: null
ntp_address: null
smartdns_china_dns: smartdns_china_dns:
- 114.114.114.114 - 114.114.114.114
- 223.5.5.5 - 223.5.5.5
......
...@@ -78,3 +78,19 @@ services: ...@@ -78,3 +78,19 @@ services:
volumes: volumes:
- ./sni/nginx.conf:/etc/nginx/nginx.conf - ./sni/nginx.conf:/etc/nginx/nginx.conf
{% endif %} {% endif %}
ntp:
restart: always
image: cturra/ntp
environment:
NTP_SERVERS: ntp1.aliyun.com,ntp2.aliyun.com,ntp3.aliyun.com,ntp4.aliyun.com
cap_add:
- SYS_TIME
ports:
{% if ntp_address %}
{% for address in ntp_address %}
- '{{address}}:123:123/udp'
{% endfor %}
{% else %}
- '123:123/udp'
{% 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