docker exec
inside the Mattermost container and try to connect to the PostgreSQL container via the mentioned port. If it does not work, they are not in the same network.
docker exec
inside the Mattermost container and try to connect to the PostgreSQL container via the mentioned port. If it does not work, they are not in the same network.