diff --git a/README.md b/README.md index 01b1290..6c1caf8 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,21 @@ Mount the whole folder containing the traefik certificate file (`acme.json`) as The docker socket is used to find any containers with this label: `com.github.SnowMB.traefik-certificate-extractor.restart_domain=`. If the domains of an extracted certificate and the restart domain matches, the container is restarted. Multiple domains can be given seperated by `,`. +You can easily use `docker-compose` to integrate this container into your setup: + +```yaml +... +services: + certs: + image: snowmb/traefik-certificate-extractor + volumes: + - path/to/acme.json:/app/data/acme.json:ro + - certs:/app/certs:rw + - /var/run/docker.sock:/var/run/docker.sock + command: -r --include example.com + restart: always +``` + ## Output ```