Skip to content

Restarts mailcow containers which use the ssl-certificate when it gets changed

Notifications You must be signed in to change notification settings

Sarsum/mailcow-cert-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

mailcow-cert-watcher

Restarts mailcow containers which use the ssl-certificate when it gets changed

background

Since mailcow-traefik-acme-adapter is not working with the new Traefik v2, I created this watcher to restart the mailcow-dockerized containers which uses the ssl certificate when the certificate file(s) get updated.

This works great with the traefik-certs-dumper which extracts the ssl certificate from the acme.json of traefik

usage

Mount your mailcow-ssl-certificate folder into /ssl-folder and the docker-socket to the default docker-socket location (/var/run/docker.sock)

version: "3.7"
services:
  mailcow-cert-watcher:
    image: sarsum/mailcow-cert-watcher
    volumes:
      - /opt/mailcow-dockerized/data/assets/ssl:/ssl-folder:rw
      - /var/run/docker.sock:/var/run/docker.sock:rw

Problems?

If you need help using this image, have suggestions or want to report a problem, feel free to open an issue on GitHub!

About

Restarts mailcow containers which use the ssl-certificate when it gets changed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published