This application has two Docker containers:
-
- Serves the Flask web application which allows users to register and login.
- Serves Plotly Dash apps with authentication provided by the parent Flask app.
-
- Contains the user database for the Flask app.
Each container can be run independently (see the README in the flask-app and postgres-db directories), or simultaneously.
-
To launch the app in developement mode, rename and edit the .env.example file to .env in both the flask-app and postgres-db directories.
-
Start the application using
docker compose build && docker compose up -d
. -
Stop the application using
docker compose down
. -
After making changes to the app run
docker compose build && docker compose up -d
To create a clean build, remove the docker images and restart the containers
docker compose down
docker image rm flask-app-mono-repo_app flask-app-mono-repo_db
docker compose up -d