-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement - DCCB as Docker Container #14
Comments
Sounds like a good excuse for me to finally get off my duff and learn how to Docker (: |
I got DiscordCurrentlyCastingBot to work as a Docker container on my home server. I cloned your project to a folder, and filled out the .env with my server/channel info. Then I use this Dockerfile to create the Docker image:
Then I build the docker image with: Then I created a docker-compose.yml file to run it. The environment variables in the docker-compose file get passed to the container from the .env file the user creates in the same folder:
It maps the database to a bind volume so the data persists between restarts. Maybe you could create the official image on your end and upload it to the github container repo (ghcr.io) or hub.docker.com? |
Thanks for this! I'll fiddle around with it and do a little testing, and if it flies as well as I imagine it will, shall incorporate this. |
It would be cool if the DiscordCurrentlyCastingBot was created as a Docker container. Easy to manage port access and configuration. Should have the ability to set up a bind volume so database and config is stored on host machine, and is retained between reboots and upgrades. Thanks for your consideration!
The text was updated successfully, but these errors were encountered: