adduser antony
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh
sudo apt-get install docker-compose-plugin
mkdir -p docker/acme.sh && cd docker
sudo docker pull neilpang/acme.sh
docker run --rm -it -v "${PWD}/acme.sh/config":/acme.sh --net=host neilpang/acme.sh --set-default-ca --server letsencrypt
docker run --rm -it -v "${PWD}/acme.sh/config":/acme.sh --net=host neilpang/acme.sh --issue -d example.com -d *.example.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please
docker run --rm -it -v "${PWD}/acme.sh/config":/acme.sh --net=host neilpang/acme.sh --issue -d example.com -d *.example.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please --renew
git clone https://github.com/jxu124/docker-server
sh upload_unmask.sh
rm -r traefik/config/example.com
cp -r acme.sh/config/example.com traefik/config
docker compose up -d
docker build . -t antonyxu/v2ray
docker login
docker push antonyxu/v2ray
openssl x509 -in acme.sh/config/example.com/example.com.cer -noout -dates # 测试证书的过期时间