diff --git a/Dockerfile b/Dockerfile index b26b22e..6c2a44d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,9 @@ COPY geoip2.conf /etc/nginx/modules/ # 设置Python包的镜像源,并安装zope和certbot-dns-dnspod RUN source /opt/certbot/bin/activate && \ - # pip config set global.index-url https://mirrors.tencentyun.com/pypi/simple && \ pip install --no-cache-dir zope certbot-dns-dnspod && \ + pip config set global.index-url https://mirrors.tencentyun.com/pypi/simple && \ deactivate # 更改apt源为腾讯云源 -# RUN sed -i "s@http://deb.debian.org@https://mirrors.tencentyun.com@g" /etc/apt/sources.list.d/debian.sources +RUN sed -i "s@http://deb.debian.org@https://mirrors.tencentyun.com@g" /etc/apt/sources.list.d/debian.sources diff --git a/compose.yml b/compose.yml index c7e5b8a..7b09ce5 100644 --- a/compose.yml +++ b/compose.yml @@ -14,8 +14,8 @@ services: - ./data:/data - ./letsencrypt:/etc/letsencrypt environment: - - DISABLE_IPV6=true - TZ=Asia/Shanghai + - DISABLE_IPV6=true networks: - nginx restart: unless-stopped @@ -26,6 +26,7 @@ services: volumes: - ./data/geoip2:/usr/share/GeoIP environment: + - TZ=Asia/Shanghai - GEOIPUPDATE_ACCOUNT_ID=****** - GEOIPUPDATE_LICENSE_KEY=**************************************** - 'GEOIPUPDATE_EDITION_IDS=GeoLite2-City GeoLite2-Country GeoLite2-ASN'