docker-compose project


Goal of this project to deploy Java application stack (Nginx, Tomcat, MySQL) using docker-compose.


  1. Java login application source code is committed to the Bitbucket repo.
  2. Customize file with MySQL database name and credentials to connect with database.
  3. Build the Java source code and keep the artifact ready (.war)


Write Docker-Compose YAML file to deploy Nginx, Tomcat, MySQL application  containers.


  1. Customize Nginx application using source image “” and volume map nginx.conf to proxy the requests to the Tomcat application container.
  2. Expose port 80


  1. Customize Tomcat application using source image “” and volume map tomcat-users.xml and .war artifact to serve the Java login application.
  2. Expose port 8080
  3. Install Java, mysql, telnet packages.


  1. Customize MySQL application using source image”” and add environment variables to setup database name and passwords.
  2. Expose port 3306.
  3. Create Table Schema on container startup;  Bitbucket repo file updated with the Table Schema details compatible for the Login application.


  1. Ensure containers are running and healthy.
  2. Login to Tomcat container and check the MySQL access using “mysql” client cli.
  3. Create hosted zone in AWS Route 53 and add A record pointing to the EC2 instance Elastic IP.
  4. Verify application is accessible using public internet browser.

© Edwiki Trainings – Click HERE If you are interested to learn more on Cloud & DevOps stack.

1 comment
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like