Add Docker-Compose and .env-example for Nextcloud Exporter
This pull request introduces a docker-compose.yml and .env-example file to simplify and optimize the deployment of the Nextcloud Exporter.
Changes:
-
Added docker-compose.yml: This file includes configuration for the ghcr.io/xperimental/nextcloud-exporter image. It's set to restart automatically and has port 9205 exposed.
-
Added .env-example: An example environment file that can be renamed to .env and filled in with appropriate values.
How to Test:
Rename .env-example to .env and populate it with your Nextcloud server details and authentication token. Run docker-compose up -d to start the service in detached mode.
Please review the changes and let me know if anything needs to be adjusted.
KR, Federico.
@federicociro Sorry for the lack of response. I did not get to looking at this yet.
Hello @federicociro
It looks like something better fitting into the documentation or an examples/docker-compose directory.
@xperimental, what do you think about that?
If I may:
- some security enhancements:
user: "1000"
ports:
- "127.0.0.1:9205:9205"
security_opt:
- no-new-privileges:true
- example env value:
environment:
- NEXTCLOUD_SERVER=
- NEXTCLOUD_USERNAME=
- NEXTCLOUD_PASSWORD=
- NEXTCLOUD_AUTH_TOKEN=
- NEXTCLOUD_LISTEN_ADDRESS=
- NEXTCLOUD_TIMEOUT=
- NEXTCLOUD_TLS_SKIP_VERIFY=
- NEXTCLOUD_INFO_APPS=
- NEXTCLOUD_INFO_UPDATE=