These examples demonstrate using the dash-websockets dash extension with dockers.
In all the examples, the servers are run by the docker via uvicorn and the clients are run via gunicorn.
The dockers can be started with
docker compose up --buildThen the dash app can be viewed by pointing a brower <ip_address>:8050 where ip_address=localhost when run locally,
or else it could be a server adddress.
This is a dockerized version of the original code from the Real-time data streaming example in the
dash-extensions documentation, of a graph that updates in real-time. The websocket is served by the Quart framework (which the docker exposes with uvicorn).
This is a dockerized version of the Low latency communication example from the dash-extensions documentation, demonstrating two-way communication with the dash-websockets extension.
This is a simple dash app whith two-way communication as well as a DataTable showing real-time updates.
The server uses the FastAPI framework.