Update z1/README.md

This commit is contained in:
Charlyne Wargnier-Potier 2025-03-19 06:40:44 +00:00
parent 6cdc079e92
commit 8a2b0a0424

View File

@ -34,27 +34,27 @@ Both containers communicate over a custom Docker network (`app_network`).
- **Volume:** `pgdata` Persists PostgreSQL data between container restarts. - **Volume:** `pgdata` Persists PostgreSQL data between container restarts.
## How to prepare, run, pause and delete the application ## How to prepare, run, pause and delete the application
# Step 1: Prepare the application ## Step 1: Prepare the application
# This will create the necessary volume, network, and build the Flask image. ### This will create the necessary volume, network, and build the Flask image.
./prepare-app.sh ./prepare-app.sh
# Step 2: Run the application ## Step 2: Run the application
# This will start the PostgreSQL database and Flask web application containers. ### This will start the PostgreSQL database and Flask web application containers.
./start-app.sh ./start-app.sh
# Step 3: Stop the application ## Step 3: Stop the application
# It will stop the containers ### It will stop the containers
./stop-app.sh ./stop-app.sh
# Step 5: Remove the application ## Step 5: Remove the application
# This will stop and remove the containers, network, and volume. ### This will stop and remove the containers, network, and volume.
./remove-app.sh ./remove-app.sh
## How to view the application on the web ## How to view the application on the web
# Step 1: Ensure that the Flask application is running ## Step 1: Ensure that the Flask application is running
# Make sure that the application has been started by running the ./start-app.sh script. ### Make sure that the application has been started by running the ./start-app.sh script.
# The Flask application should be accessible at http://localhost:5000. ### The Flask application should be accessible at http://localhost:5000.
# Step 2: Open a web browser and enter the following URL: ## Step 2: Open a web browser and enter the following URL:
http://localhost:5000 http://localhost:5000