From e40e995e0ea62c8d803074759e35cb9ccd009c12 Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Mon, 19 Jul 2021 18:06:35 +0200 Subject: ref: Add to README --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 3d9c5f4..b86cf56 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,21 @@ Nextcloud. nextcloud instance. * `NEXTCLOUD_PATH`: root folder for where all the images will be saved. + + +# Running as docker container + +To run as docker you need to pass all the environment variables listed above: + +```BASH +docker run -d --rm \ + -e CLIENT_ID=$CLIENT_ID \ + -e CLIENT_SECRETE=$CLIENT_SECRET \ + -e REDDIT_USERNAME=$REDDIT_USERNAME \ + -e REDDIT_PASSWORD=$REDDIT_PASSWORD \ + -e NEXTCLOUD_HOST=$REDDIT_HOST \ + -e NEXTCLOUD_USERNAME=$NEXTCLOUD_USERNAME \ + -e NEXTCLOUD_PASSWORD=$NEXTCLOUD_PASSWORD \ + -e NEXTCLOUD_PATH=$NEXTCLOUD_PATH \ + registry.gitlab.com/gabrielgio/reddit-nextcloud-importer:latest +``` -- cgit v1.2.3