docker-compose example

This commit is contained in:
Marc Brückner 2018-11-11 21:13:01 +01:00
parent 55c8204f42
commit 0f4cab45f2

View File

@ -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=<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
```