Hi Giovanni,
The problem with this is that browsers do not distinguish between different ports when sending cookies, so the same cookies are sent to your two instances of sFlowTrend. This does not work, as the session is used as a key part of the connection to sFlowTrend, and the sessions are completely separate between the two instances - but they will receive the same session cookie.
There are a few ways to work around this:
1. Use a different browser (or different client systems) to access each sFlowTrend instance. This is simple, but obviously not very convenient.
2. Create two DNS name aliases for the same system, either in /etc/hosts on the client, or as CNAMEs in DNS. So you would have sflowtrend1 and sflowtrend2, both pointing to the same IP address. You would then access sFlowTrend via these aliases. I think this will work OK (although it would need to be tested).
3. Use a different docker network than the default bridge, namely macvlan. This allows each docker container to have its own IP address, which will mean they are completely separate systems, as far as a browser is concerned.
regards,
Stuart