gofractally / psibase

Open source protocol enabling communities to easily self-host web applications
https://docs.psibase.io
MIT License
28 stars 7 forks source link

Develop docker swarm node deployment #353

Open James-Mart opened 1 year ago

James-Mart commented 1 year ago

Simple method to deploy psinode, nginx, certbot, etc. on a server using docker swarm container orchestration.

James-Mart commented 1 year ago
James-Mart commented 1 year ago

In order to ensure system services all use auth-ec-sys, I need to use psibase boot with the --key option. In order to do that, I could...

  1. Keep psibase boot running from supervisor, but inject an environment variable to add runtime flags, like psibase $FLAGS boot and then pass the $FLAGS environment variable into the container on launch. or...
  2. Make the psinode image only run psinode, and create another image exclusively for psibase. This could be helpful to give anyone on any OS a remote admin CLI tool (psibase) for any psinode instance. But then I would need to also update Psidekick to make sure it also somehow runs psibase boot automatically. This is probably the correct design.