Deploying the Application
Deployment with Docker Compose
- Before deploying with Docker Compose, we need to remove the two Docker Containers that we ran earlier using this command:
sudo docker rm -f backend frontend

- Create a new SSH session, then navigate to the docker-compose-env directory at the root of the project and use
sudo nano backend.app.env to update the DB_HOST variable to your RDS Endpoint.
cd docker-compose-env
sudo nano backend.app.env


- Next, we can simply run:
sudo docker compose -f docker-compose.app.yml up
- This will start the two containers just like we did in the previous section.

- Our application is up and running. In the next step, we will proceed to check the application.
