calendar-fetcher/readme.md

21 lines
802 B
Markdown
Raw Normal View History

2023-10-08 21:12:55 +00:00
# Docker
2024-06-12 19:23:56 +00:00
## Local run for testing
`python webserver.py`
2023-10-08 21:12:55 +00:00
## Build it manually
`docker build -t calendar-fetcher .`
## Run it in a Docker Container
1. Adjust the parameters in `Dockerfile`
1. Build the docker image with `docker build -t calendar-fetcher .`
1. Run it with `docker run -it --rm -v /volume1/web/calendar-fetcher:/data --name my-calendar-fetcher -p 8014:8014 --label=com.centurylinklabs.watchtower.enable=false calendar-fetcher`
1. Call it in a webbrowser: `http://localhost:8014`
## replace existing Docker Container (Update)
```
docker build -t calendar-fetcher .
docker stop calendar-fetcher
docker rm calendar-fetcher
docker run -d -P --name calendar-fetcher -p 8014:8014 -v /volume1/web/smartmirror/data:/data --label=com.centurylinklabs.watchtower.enable=false calendar-fetcher
```