Self Hosted Docker, Logs out randomly

Hi,

I rum a self hosted Docker image using below.

it logs me out randomly, without any error. mostly while saving any invoice or quote. from the container log, I cant find much. container log doesnt give me much info.

where should I start looking into. Thank you.

Hi,

Which version are you using and is it the Flutter or React app?

Also, do you see any errors in the browser console?

1 Like
app:
  image: invoiceninja/invoiceninja:latest
  env_file: env
  restart: always
#    deploy:
#      mode: replicated
#      replicas: 3

I think it was due to this. We were running multiple container for load balancing , once we turn it off. Its kind of stable.

Glad to hear it, thanks for sharing the solution!

I am not expert on Docker, but if someone can find out what is needed to enable replication will be great. As this speed’s up significantly when multiple user logs in.

How many users are accessing the site? I wouldn’t expect replication to impact performance for a selfhost install.

5 user… When all 5 logs in at the same time. they experience slowness. having replica on, loads gets distributed. As of now in reality replication is not needed for 5 user.

@david do you have any ideas?