Testing the Application Locally in a Docker Setup
- Procedure
- Run the following command on a docker terminal to run the application image:
docker run -i -p 8080:8080 -e "DB_URL=jdbc:postgresql://52.18.253.34:5433/ postgres" -e "DB_USERNAME=bwuser" -e "DB_PASSWORD=password" tibco/bwce-restbookstore- app
- Run the following command to view the logs to make sure that the application has started successfully.
docker logs <container name>
- Get the docker machine IP.