eduardogsilva / routerfleet

RouterFleet: An open-source solution for centralized router and network equipment management. Initially focused on Mikrotik devices, it offers simplified backups, updates, and security. Perfect for managing a fleet of devices efficiently. Join us in evolving RouterFleet's capabilities
MIT License
65 stars 3 forks source link

Ability to use external PostgreSQL database #1

Closed mtnezm closed 4 months ago

mtnezm commented 4 months ago

Hi,

By any chance is it possible to specify an external PostgreSQL database endpoint, maybe via environment variables? I'm wondering since only the POSTGRES_PASSWORD variable seems enabled to be defined by the user, but the HOST one is already there too.

Thanks and keep up with the good work.

eduardogsilva commented 4 months ago

Hello @mtnezm !

Yes, it's possible, I just used the POSTGRES_PASSWORD variable to not ship a default password. I'm planning to use an image host. I just need to check some best practices first.

I will leave this issue open, and I will add this soon. Meanwhile, you can edit the routerfleet/production_settings.py in your running container and insert your database settings. warning: This file will be lost if you rebuild the container.

eduardogsilva commented 4 months ago

@mtnezm It's done! :) Please check the upgrade instructions, it changed a bit.

mtnezm commented 4 months ago

Thanks a lot!