mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-23 19:12:11 +10:00
update docker commend in readme
This commit is contained in:
@@ -130,17 +130,21 @@ python3 sungather.py
|
|||||||
```
|
```
|
||||||
|
|
||||||
# Docker
|
# 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
|
```sh
|
||||||
docker pull bohdans/sungather
|
docker pull bohdans/sungather
|
||||||
docker run -v {path to}/config.yaml:/config/config.yaml -e TZ=Australia/Sydney --name sungather bohdans/sungather
|
docker run -d --name sungather \
|
||||||
```
|
--restart always \
|
||||||
or if using the webserver export
|
-v {path to}/config.yaml:/config/config.yaml \
|
||||||
```sh
|
-v {logpath}:/logs \
|
||||||
docker run -v {path to}/config.yaml:/config/config.yaml -e TZ=Australia/Sydney -p 8080:8080 --name sungather bohdans/sungather
|
-e TZ=Australia/Sydney \
|
||||||
```
|
-p 8080:8080 \
|
||||||
with webserever export and logging
|
bohdans/sungather
|
||||||
```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
|
|
||||||
```
|
```
|
||||||
Note: replace Australia/Sydney with relevant timezone
|
Note: replace Australia/Sydney with relevant timezone
|
||||||
<p align="right">(<a href="#top">back to top</a>)</p>
|
<p align="right">(<a href="#top">back to top</a>)</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user