Giter Club home page Giter Club logo

docker-postgres-springboot-demo's Introduction

docker-postgres-springboot-demo License: MIT

Header

This project has been developed to demonstrate how to dockerize the SpringBoot App and PostgreSQL database.

Requirements To Run Application Without Docker

  • JDK 1.8
  • PostgreSQL

Dependencies And Tools Used To Build Application

  • Git
  • JDK 1.8
  • Spring Boot
  • data-jpa
  • starter-web
  • Maven
  • Lombok
  • MapStruct
  • Swagger

For detailed information refer to pom.xml

How to dockerize SpringBoot App & PostgreSQL

Note: you must have some knowledge of docker as I am not going to explain in detail here, if you have any queries you can ask me.

  • There is a Dockerfile in the root directory docker-postgres-springboot-demo, this file is used to dockerize the SpringBoot App.

  • The last and most important file is docker-compose.yml, which is available in the docker-postgres-springboot-demo directory, this file contains the configuration which will start the SpringBoot App and PostgreSQL and make them connected.

Start the Application with the help of Docker

Go to the docker-postgres-springboot-demo directory and execute the following command in the terminal

docker-compose up

And we are done, the SpringBoot App will be starting on port 8081 and PostgreSQL is on 5434

Now you can open the swagger to access the APIs: Swagger

Similarly, you can dockerize your application with PostgreSQL.

Thank You :)

docker-postgres-springboot-demo's People

Contributors

pateluday07 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.