nextcloud-exporter icon indicating copy to clipboard operation
nextcloud-exporter copied to clipboard

Add Docker-Compose and .env-example for Nextcloud Exporter

Open federicociro opened this issue 2 years ago • 3 comments

This pull request introduces a docker-compose.yml and .env-example file to simplify and optimize the deployment of the Nextcloud Exporter.

Changes:

  1. 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.

  2. 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 avatar Sep 25 '23 15:09 federicociro

@federicociro Sorry for the lack of response. I did not get to looking at this yet.

xperimental avatar Sep 29 '23 12:09 xperimental

Hello @federicociro

It looks like something better fitting into the documentation or an examples/docker-compose directory.

@xperimental, what do you think about that?

PReimers avatar May 12 '24 20:05 PReimers

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=

thiswillbeyourgithub avatar Jul 02 '25 11:07 thiswillbeyourgithub