-
Notifications
You must be signed in to change notification settings - Fork 4
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
Docker support? #837
Comments
It's a good idea. Unfortunately, I have no experience with either creating my own docker containers or Raspberry pi. I'll keep this issue open for now. |
What kind of setup are you using today?
Skickat från min iPhone
… 12 jan. 2022 kl. 03:13 skrev Fredrik Lidström ***@***.***>:
It's a good idea.
Unfortunately, I have no experience with either creating my own docker containers or Raspberry pi. I'll keep this issue open for now.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
The public server is hosted on Heroku. I would guess that creating a Docker container for this project should be pretty straightforward. It's basically three parts, that could possibly all be run in the same container for personal usage.
It does already create and populate the database automatically if it connects and the |
This was fairly easy to do a quick and dirty docker image out of. Once I managed to figure out the database creation and the token extraction (might be easier with the .env-file creation and the additional step by step in the installation instruction).
|
Thanks for this @galonias! What would be the best practice regarding PostgreSQL? How did you set up yours? Typically it's not recommended to use a Dockerized PostgreSQL for production, but I can imagine that it would be very nice and convenient for personal use. Maybe step-by-step instructions on how to set up a PostgreSQL container beside the smartcharge Docker container would be sufficient? What do you think? |
although maybe a fully ready-made single-user smartcharge setup with server, worker, and PSQL using docker-compose could be nice in the end |
I have a PSQL docker container which I’ve reused for this purpose. I didn’t bother setting up a secondary instance. Having a dedicated single user in one docker container would be optimal for easy setup. You can probably borrow some inspiration from Teslamate and their docker-compose file, https://docs.teslamate.org/docs/installation/docker |
PSQL in a container works perfectly for TeslaMate.
With a good docker-componse file setup is very easy despite having multiple containers.
I think you can get good ideas by looking at the docker setup guide for TeslaMate.
… 6 sep. 2022 kl. 20:48 skrev galonias ***@***.***>:
I have a PSQL docker container which I’ve reused for this purpose. I didn’t bother setting up a secondary instance.
Having a dedicated single user in one docker container would be optimal for easy setup. You can probably borrow some inspiration from Teslamate and their docker-compose file, https://docs.teslamate.org/docs/installation/docker <https://docs.teslamate.org/docs/installation/docker>
—
Reply to this email directly, view it on GitHub <#837 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAGSBXCUN6ISGYSIRR4LNIDV46GZXANCNFSM5LDUNMOQ>.
You are receiving this because you authored the thread.
|
Very interested in this app. Docker would be a great addition. Is it still maintained? |
Any plans to add a docker-compose file to simplify installation locally, like on a raspberry pi?
The text was updated successfully, but these errors were encountered: