Code Monkey home page Code Monkey logo

spring-boot-docker's Introduction

Dockerizing Spring Boot and MySQL

Demo project with demonstration of dockerizing Spring Boot App and MySQL.

Running the project

  1. Install docker on your local machine. You can find the installation steps on this link: https://docs.docker.com/install/
  2. Open terminal and navigate to project directory
  3. Run command: mvn clean install -DskipTests
  4. Run command: mvn clean package -DskipTest

Build images and deploy docker stack

  1. Run command to build images: docker-compose build
  2. Run command to deploy stack locally: docker stack deploy -c docker-compose.yml <your_stack_name>
  3. Run command docker ps to see running containers.

View docker container logs

  1. Run command: docker ps
  2. Run command: docker logs -f <container_id>

NOTE: The above steps will create docker stack with MySQL and Java running containers.

Author

Heril Muratović
Software Engineer

Mobile: +38269657962
E-mail: [email protected]
Skype: hedza06
Twitter: hedzakirk
LinkedIn: https://www.linkedin.com/in/heril-muratovi%C4%87-021097132/
StackOverflow: https://stackoverflow.com/users/4078505/heril-muratovic

spring-boot-docker's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.