Let's assume that you have completed configuration docker-compose config, CD to the workdir and into certbot-toy directory。
cd ${your_path} && cd certbot-toy
Please select the corresponding step according to your actual situation.
This command is to init third party dns-plugins, it include aliyun Cloud DNS.
Don't forget to complete the configuration init-config.sh
file, we need these envionment variables.
- 1.1 Actually we have offered the go build binary file in the
${your_path}/certbot-toy/scripts/docker/bin/
directory, you can skip the init step.
#1.1
bash main.sh init
Please select one of the methods in 2.1 or 2.2 to get the certbot-toy image.
- 2.1 This command is to build docker images, the certbot-toy is integrated EFF's Certbot with third party dns plugins.
#2.1
bash main.sh build
- 2.2 This command is to pull the "certbot-toy:latest” which is download from hub.docker.com online origin.
#2.2
docker pull xubeijun/certbot-toy
You need to go to the directory where your docker-compose.yml file is located.
cd ${YOUR_DOCKER_COMPOSE_YML_PATH}
Below command help you to view this docker image which is named certbot-toy.
docker-compose images
Don't forget to complete the configuration .env
and docker-compose.yml
file, we need these envionment variables.
You need to go to the directory where your docker-compose.yml file is located.
cd ${YOUR_DOCKER_COMPOSE_YML_PATH}
- 3.1 This command is to run the docker images which is named certbot-toy.
#3.1
docker-compose up --no-deps -d certbot
Below command help you to view this docker container list, you will see it which one is named certbot.
docker-compose ps
Don't forget to complete the configuration user-config.sh
file, we need these envionment variables.
You can modify the configuration file on demand at any time.
You need to go to the directory where your docker-compose.yml file is located.
cd ${YOUR_DOCKER_COMPOSE_YML_PATH}
Lists of the valid domain config which is defined in user-config.sh file.
docker-compose exec certbot certbot-toy manage -l