From 02b87f81c1434b108291a35517d617348b001de1 Mon Sep 17 00:00:00 2001 From: bohdan-s Date: Mon, 7 Mar 2022 15:06:55 +1100 Subject: [PATCH] update docker commend in readme --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1b0b64b..69f3c46 100644 --- a/README.md +++ b/README.md @@ -130,17 +130,21 @@ python3 sungather.py ``` # Docker +docker run options: +-v {path to}/config.yaml:/config/config.yaml <- Set Config File Location +-v {logpath}:/logs <- Set Log folder Location if using log to file (also set log_file in config.yaml) +-e TZ=Australia/Sydney <- Set Timezone +-p 8080:8080 <- Set Web server port (only if using the webserver export) + ```sh docker pull bohdans/sungather -docker run -v {path to}/config.yaml:/config/config.yaml -e TZ=Australia/Sydney --name sungather bohdans/sungather -``` -or if using the webserver export -```sh -docker run -v {path to}/config.yaml:/config/config.yaml -e TZ=Australia/Sydney -p 8080:8080 --name sungather bohdans/sungather -``` -with webserever export and logging -```sh -docker run -v {path to}/config.yaml:/config/config.yaml -v{logpath}:/logs -e TZ=Australia/Sydney -p 8080:8080 --name sungather bohdans/sungather +docker run -d --name sungather \ + --restart always \ + -v {path to}/config.yaml:/config/config.yaml \ + -v {logpath}:/logs \ + -e TZ=Australia/Sydney \ + -p 8080:8080 \ + bohdans/sungather ``` Note: replace Australia/Sydney with relevant timezone

(back to top)