Add a docker-compose example for using the exporter
This commit is contained in:
parent
5915e19a48
commit
cdd3d38321
5 changed files with 32 additions and 0 deletions
11
README.md
11
README.md
|
@ -61,6 +61,17 @@ With the source being available it's also possible to produce custom builds
|
||||||
directly using [Go][golang] or [GoReleaser][goreleaser].
|
directly using [Go][golang] or [GoReleaser][goreleaser].
|
||||||
|
|
||||||
|
|
||||||
|
### Docker Compose
|
||||||
|
|
||||||
|
An example configuration for [Docker Compose][dockercompose] is available in
|
||||||
|
`contrib/docker-compose`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
env --chdir contrib/docker-compose docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
[dockercompose]: https://docs.docker.com/compose/
|
||||||
[golang]: https://golang.org/
|
[golang]: https://golang.org/
|
||||||
[goreleaser]: https://goreleaser.com/
|
[goreleaser]: https://goreleaser.com/
|
||||||
[paperless-api]: https://docs.paperless-ngx.com/api/
|
[paperless-api]: https://docs.paperless-ngx.com/api/
|
||||||
|
|
1
contrib/docker-compose/.env
Normal file
1
contrib/docker-compose/.env
Normal file
|
@ -0,0 +1 @@
|
||||||
|
COMPOSE_PROJECT_NAME=prometheus-paperless-exporter
|
1
contrib/docker-compose/config/auth-token.txt
Normal file
1
contrib/docker-compose/config/auth-token.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
insecuretoken
|
14
contrib/docker-compose/docker-compose.yml
Normal file
14
contrib/docker-compose/docker-compose.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
version: "3.7"
|
||||||
|
services:
|
||||||
|
exporter:
|
||||||
|
image: ghcr.io/hansmi/prometheus-paperless-exporter:latest
|
||||||
|
restart: on-failure
|
||||||
|
init: true
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:8081:8081
|
||||||
|
env_file: exporter.env
|
||||||
|
volumes:
|
||||||
|
- ./config/:/etc/exporter:ro
|
||||||
|
|
||||||
|
# vim: set sw=2 sts=2 et :
|
5
contrib/docker-compose/exporter.env
Normal file
5
contrib/docker-compose/exporter.env
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
PAPERLESS_URL=https://paperless.example.com
|
||||||
|
PAPERLESS_AUTH_TOKEN_FILE=/etc/exporter/auth-token.txt
|
||||||
|
PAPERLESS_SERVER_TIMEZONE=Australia/Sydney
|
||||||
|
|
||||||
|
# vim: set sw=2 sts=2 et :
|
Loading…
Reference in a new issue