- I Execute
docker-compose up - The Dash app seems to work fine (see the output)
- Dash app cannot be accessed through the local browser
localhost:8050
Dash file:
app = dash.Dash(__name__)
//...
if __name__ == '__main__':
app.run_server(debug=True, host='0.0.0.0', port=8050)
docker-compose file:
version: "3.7"
services:
dashapp:
image: my_dash_image
container_name: my-dash
ports:
- 8050:8050
volumes:
- /tmp/files:/usr/src/app
Output execution:
my-dash | Hello!
my-dash | Running on http://127.0.0.1:8050/
my-dash | Debugger PIN: 576-910-730
my-dash | * Serving Flask app "global_overview_indicators" (lazy loading)
my-dash | * Environment: production
my-dash | WARNING: This is a development server. Do not use it in a production deployment.
my-dash | Use a production WSGI server instead.
my-dash | * Debug mode: on