mirror of
https://github.com/SnowMB/traefik-certificate-extractor.git
synced 2025-01-18 13:59:33 +08:00
docker-compose example
This commit is contained in:
parent
55c8204f42
commit
0f4cab45f2
15
README.md
15
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=<DOMAIN>`.
|
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 `,`.
|
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
|
## Output
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user