certbot: removed cron config file, already created by certbot

This commit is contained in:
Juan Ferrer 2022-03-21 13:06:23 +01:00
parent 33f0b10152
commit 48fed98183
3 changed files with 16 additions and 10 deletions

View File

@ -4,19 +4,30 @@ Dockerfile and compose files used as basis for service deployment.
## Build and push an image
Build the image.
Full image name is made up of registry URL and image name.
```
$ docker build -t [registryUrl]/[imageName]:[tag] [folder]
fullImageName = [registryUrl]/[baseImageName]
```
Login into docker registry.
Build the image with *latest* tag.
```
$ docker build -t [fullImageName] [folder]
```
Tag the image with version.
```
$ docker build -t [fullImageName] [fullImageName]:[tag]
```
Login into docker registry (If it's the first time or you are not saving credentials).
```
$ docker login [registryUrl]
```
Push the image.
Push the *latest* image and version tag.
```
$ docker push [registryUrl]/[imageName]:[tag]
$ docker push [fullImageName]
$ docker push [fullImageName]:[tag]
```
Logout from docker registry (If you don't logout, credentials will remain saved

View File

@ -9,8 +9,5 @@ RUN apt-get update \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
COPY certbot-renew /etc/cron.d/
VOLUME ["/etc/letsencrypt"]
CMD ["cron", "-f"]

View File

@ -1,2 +0,0 @@
MAILTO=hostmaster
0 */12 * * * root certbot -q renew