From 0f4cab45f2524c4588e299ecb29cf6b0bf176345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Br=C3=BCckner?= Date: Sun, 11 Nov 2018 21:13:01 +0100 Subject: [PATCH] docker-compose example --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 ```