Welcome to this project! Here, a Java application smoothly runs on Tomcat, neatly packaged alongside Nginx, MySQL, Memcached, and RabbitMQ. The coordination is made easy with Docker Compose.
- Java Application: The heart of the project, a Java application seamlessly integrated with Tomcat, wrapped in a Docker container for ultimate portability.
- Web Server (Nginx): An Nginx container adeptly serving the Java application and doubling as a reverse proxy.
- Database (MySQL): A Dockerized MySQL database dedicated to storing application data.
- Caching (Memcached): Seamlessly integrate Memcached for efficient caching.
- Message Queue (RabbitMQ): RabbitMQ provides robust messaging capabilities.
Ensure your system is equipped with Docker and Docker Compose.
-
Clone the repository:
git clone https://github.com/yourusername/docker-java-app.git
-
Navigate to the project directory:
cd docker-java-app
-
Launch the containers using Docker Compose:
docker-compose up
Watch as the containers seamlessly build and launch based on the configurations in docker-compose.yml.
Access the Java application through your browser at http://localhost:8080
When you're done, gracefully stop and remove the containers:
docker-compose down