alseambusher / crontab-ui

Easy and safe way to manage your crontab file
https://lifepluslinux.blogspot.com/2015/06/crontab-ui-easy-and-safe-way-to-manage.html
MIT License
2.91k stars 480 forks source link

Is it possible to run crontab-ui inside a docker container and be accessible from anywhere in network? #218

Closed Jeff534 closed 9 months ago

Jeff534 commented 2 years ago

I tried the following command, however it complained the host and port number not accessible. HOST=[VM PUBLIC IP] PORT=9000 crontab-ui

I also mapped the port in docker compose file with no luck: ports:

Crontab-ui works in VM level, but I'm wondering if I can move it to a docker container.

Thanks!

Jeff

TruckerZer0 commented 1 year ago

I believe you need to map it to "0.0.0.0:hostport:containerport", in your case "0.0.0.0:9000:9000", where 0.0.0.0 stands for "listen on all network interfaces, not just the docker host machine's internal network; At least that's how I made it work. Cheers!

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.