Skip to content

Commit 352a57b

Browse files
committed
Merge branch 'master' of github.com:alseambusher/crontab-ui
2 parents 7d13287 + ca78c54 commit 352a57b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,30 @@ If you need to autosave your changes to crontab directly:
4242

4343
crontab-ui --autosave
4444

45-
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:
45+
## Docker
46+
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)
47+
```bash
48+
docker run -d -p 8000:8000 alseambusher/crontab-ui
49+
```
4650

51+
You can also build it yourself if you want to customize, like this:
4752
```bash
4853
git clone https://github.com/alseambusher/crontab-ui.git
4954
cd crontab-ui
5055
docker build -t alseambusher/crontab-ui .
5156
docker run -d -p 8000:8000 alseambusher/crontab-ui
5257
```
58+
59+
If you want to use it with authentication, You can pass `BASIC_AUTH_USER` and `BASIC_AUTH_PWD` as env variables
60+
```bash
61+
docker run -e BASIC_AUTH_USER=user -e BASIC_AUTH_PWD=SecretPassword -d -p 8000:8000 alseambusher/crontab-ui
62+
```
63+
64+
You can also mount a folder to store the db and logs.
65+
```bash
66+
mkdir -p crontabs/logs
67+
docker run --mount type=bind,source="$(pwd)"/crontabs/,target=/crontab-ui/crontabs/ -d -p 8000:8000 alseambusher/crontab-ui
68+
```
5369

5470
## Resources
5571

0 commit comments

Comments
 (0)