Multiple ERPnext Intances using docker

Hi

Sorry for the noob questions, is there anyway to install 2 instances in 1 VPS server? to save cost obviously.

Thank you

Check the docker swarm setup. https://github.com/frappe/frappe_docker/blob/develop/docs/docker-swarm.md

If you add multiple stacks remember to name the services with unique names. e.g. erpnext-python-staging, erpnext-python-prod, etc.

You can add multiple stacks of ERPNext as well as other applications and save cost of VM.

I’m using it for a case where staging bench, production bench and wordpress website is on 1 VPS.

Thanks @revant_one, greatly appreciate ur reply and your work in this forum.

Is there any minimum recommended VPS spec for docker swarm?
and why not straight to Kubernetes setup compared to docker swarm?

Thank you @Maheshwari_Bhavesh

I’d recommend,

  • 1 VPS as data server, https://gist.github.com/revant/0d2935903c56562e9758e3ceda1a9c35. Maintain your state here, backup this server.
  • Setup traefik on a labelled Swarm master, it will become your load balancer, This is another VPS, 1st master
  • setup portainer on labelled Swarm master (optional)
  • invest in data server. Rest all VPS can be low spec, you can always scale them horizontally.

This setup allows easy expansion of mounted volumes in vm setups. If needed make this data server HA later.

You just need VPS from any provider for Docker swarm. For Kubernetes you either need provider with managed Kubernetes offering or you’ll need to set it up on your own. Kubernetes setup is not as easy as setting up Docker swarm.

1 Like