Before deploying with Docker Compose, we need to stop the two Docker Containers that we ran earlier (using Ctrl + C).
Create a new SSH session, then navigate to the docker-compose-env
directory at the root of the project and update the DB_HOST
variable.
Next, we can simply run:
cd ..
sudo docker compose -f docker-compose.app.yml up
This will start the two containers just like we did in the previous section.
Okay, it looks like our application is up and running. In the next step, we will proceed to check the application.