Thank you for sharing the background. That helps me understand your situation.
I was thinking of docker to be that VPS for me.
Okay, cool. It’s a good solution to create a separate environment. It saves you renting another VPS and lowers your costs. Great. More environments just means that you have more systems to take care of and to keep up-to-date.
My server runs debian. The ansible scripts require some ubuntu dependencies
Debian is my favourite. Ideally, we would make the Ansible scripts general enough to work with Debian as well. That was the idea behind Ansible. And it’s not that difficult. It just hasn’t been a priority, because people just chose Ubuntu.
In the meantime, it’s a good idea to use Docker as a compatibility tool. That’s a strength of Docker. But wouldn’t it be better if we didn’t need Docker? That was the point I tried to make.
There is a wordpress site and some nodejs apps already running on that server.
We do the same on openfoodnetwork.org.au (OFN) also running openfoodnetwork.org (Wordpress). The difference is that it’s Ubuntu. We just have several configurations listening to different server names. The OFN config accesses the Unicorn processes (started by an unprivileged user) via FCGI. That’s how the Ansible scripts set it up.
Do you think it would be a good idea to share the nginx and postgres db that is already running?
I don’t know if it’s a good idea. We do it that way. I guess it’s more efficient and that’s why database software supports multiple databases and multiple users with access management.
Another summary: I think that Docker is a great tool. And I think you made a good decision to use that tool to get the OFN working in your environment. But I also think we should make the OFN compatible with any setup people want to run. It should make the OFN cleaner, more flexible, faster and more powerful. But that’s just my opinion. We also have to be careful that the OFN doesn’t become full of workarounds to live in every possible environment. What are your thoughts, everyone?