Docker containers are isolated by default... nothing on the outside can reach them unless you say so. You open the door with a port mapping
In your compose file:
ports:
- '8096:8096'
Read this as HOST:CONTAINER. It says: "when something hits my server on port 8096, forward it to port 8096 inside the Jellyfin container."
So once it's running, you go to http://your-server-ip:8096/ in a browser and you're talking to Jellyfin. The container is still isolated you've just opened one specific door to access it.