certbot: removed cron config file, already created by certbot
This commit is contained in:
parent
33f0b10152
commit
48fed98183
21
README.md
21
README.md
|
@ -4,19 +4,30 @@ Dockerfile and compose files used as basis for service deployment.
|
||||||
|
|
||||||
## Build and push an image
|
## 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]
|
$ 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
|
Logout from docker registry (If you don't logout, credentials will remain saved
|
||||||
|
|
|
@ -9,8 +9,5 @@ RUN apt-get update \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY certbot-renew /etc/cron.d/
|
|
||||||
|
|
||||||
VOLUME ["/etc/letsencrypt"]
|
VOLUME ["/etc/letsencrypt"]
|
||||||
|
|
||||||
CMD ["cron", "-f"]
|
CMD ["cron", "-f"]
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
MAILTO=hostmaster
|
|
||||||
0 */12 * * * root certbot -q renew
|
|
Loading…
Reference in New Issue