https://github.com/shadyosama9/vprofile-app-dockerization
This project dockerizes a Java application called "Vprofile," developed by devopshydclub. It uses multiple Docker containers to deploy the application along with its dependencies, including MySQL, Memcached, RabbitMQ, Tomcat, and Nginx.
https://github.com/shadyosama9/vprofile-app-dockerization
docker docker-compose
Last synced: 3 months ago
JSON representation
This project dockerizes a Java application called "Vprofile," developed by devopshydclub. It uses multiple Docker containers to deploy the application along with its dependencies, including MySQL, Memcached, RabbitMQ, Tomcat, and Nginx.
- Host: GitHub
- URL: https://github.com/shadyosama9/vprofile-app-dockerization
- Owner: shadyosama9
- Created: 2024-03-04T22:00:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T23:49:05.000Z (over 2 years ago)
- Last Synced: 2025-01-26T14:12:36.928Z (over 1 year ago)
- Topics: docker, docker-compose
- Language: Java
- Homepage:
- Size: 6.46 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockarizing Java App
This repository contains the Dockerfiles and Docker Compose configuration to dockerize a Java application with MySQL database, Nginx, and other services.
## Project Structure
- **Docker-files/db**: Contains the Dockerfile for the MySQL database.
- **Docker-files/app**: Contains the Dockerfile for the Java application (Tomcat).
- **Docker-files/web**: Contains the Dockerfile for Nginx.
## Docker Compose Setup
The `docker-compose.yml` file defines the services for the project:
- **vprodb**: MySQL database container.
- **vprocache01**: Memcached container.
- **vpromq01**: RabbitMQ container.
- **vproapp**: Tomcat container for the Java application.
- **vproweb**: Nginx container.
## Instructions
1. Clone the repository:
```sh
git clone https://github.com/your-username/Dockarizing-Java_App.git
- Build the Docker images and start the containers:
```sh
docker-compose up --build
```
- Access the application at [http://localhost:8080](http://localhost:8080).
## Configuration
- MySQL: Default root password is `admin` and the database name is `accounts`.
- Nginx: Configuration file is located at `Docker-files/web/nginvproapp.conf`.
- Java App: The WAR file is deployed to the root context (`/`) of Tomcat.
## Technologies
- Spring MVC
- Spring Security
- Spring Data JPA
- Maven
- JSP
- MySQL
- Docker
- Docker Compose