Adding Docker section to Readme
parent
b24f4db688
commit
ca78c54afb
18
README.md
18
README.md
|
@ -42,14 +42,30 @@ If you need to autosave your changes to crontab directly:
|
||||||
|
|
||||||
crontab-ui --autosave
|
crontab-ui --autosave
|
||||||
|
|
||||||
Setting up with docker. You can use the prebuilt images in the [dockerhub](https://hub.docker.com/r/alseambusher/crontab-ui/tags) or build it yourself like this:
|
## Docker
|
||||||
|
You can use crontab-ui with docker. You can use the prebuilt images in the [dockerhub](https://hub.docker.com/r/alseambusher/crontab-ui/tags)
|
||||||
|
```bash
|
||||||
|
docker run -d -p 8000:8000 alseambusher/crontab-ui
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also build it yourself if you want to customize, like this:
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/alseambusher/crontab-ui.git
|
git clone https://github.com/alseambusher/crontab-ui.git
|
||||||
cd crontab-ui
|
cd crontab-ui
|
||||||
docker build -t alseambusher/crontab-ui .
|
docker build -t alseambusher/crontab-ui .
|
||||||
docker run -d -p 8000:8000 alseambusher/crontab-ui
|
docker run -d -p 8000:8000 alseambusher/crontab-ui
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you want to use it with authentication, You can pass `BASIC_AUTH_USER` and `BASIC_AUTH_PWD` as env variables
|
||||||
|
```bash
|
||||||
|
docker run -e BASIC_AUTH_USER=user -e BASIC_AUTH_PWD=SecretPassword -d -p 8000:8000 alseambusher/crontab-ui
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also mount a folder to store the db and logs.
|
||||||
|
```bash
|
||||||
|
mkdir -p crontabs/logs
|
||||||
|
docker run --mount type=bind,source="$(pwd)"/crontabs/,target=/crontab-ui/crontabs/ -d -p 8000:8000 alseambusher/crontab-ui
|
||||||
|
```
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue