{"id":24030589,"url":"https://github.com/ankitrajput0096/dockerized_springboot_postgresql","last_synced_at":"2026-04-16T05:03:40.822Z","repository":{"id":127705615,"uuid":"196496152","full_name":"ankitrajput0096/Dockerized_SpringBoot_PostgreSQL","owner":"ankitrajput0096","description":"This project demonstrates a fully Dockerized environment for a Spring Boot application integrated with a PostgreSQL database. The application leverages JPA and Hibernate for seamless data persistence, providing a robust and scalable backend solution. Docker Compose is used to orchestrate the containers, ensuring easy setup and deployment.","archived":false,"fork":false,"pushed_at":"2024-12-28T23:26:22.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T17:48:14.284Z","etag":null,"topics":["docker","docker-compose","hibernate-jpa","java-8","maven","postresql","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ankitrajput0096.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-12T02:39:44.000Z","updated_at":"2024-12-28T23:26:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"900890c1-b4b9-405e-8618-6ff2933b9b2e","html_url":"https://github.com/ankitrajput0096/Dockerized_SpringBoot_PostgreSQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrajput0096%2FDockerized_SpringBoot_PostgreSQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrajput0096%2FDockerized_SpringBoot_PostgreSQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrajput0096%2FDockerized_SpringBoot_PostgreSQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrajput0096%2FDockerized_SpringBoot_PostgreSQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankitrajput0096","download_url":"https://codeload.github.com/ankitrajput0096/Dockerized_SpringBoot_PostgreSQL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240788750,"owners_count":19857696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","hibernate-jpa","java-8","maven","postresql","spring-boot"],"created_at":"2025-01-08T17:45:01.129Z","updated_at":"2025-10-30T07:34:25.735Z","avatar_url":"https://github.com/ankitrajput0096.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerized Spring boot application with PostgreSQL\n\nThis project demonstrates a fully Dockerized environment for a Spring Boot application integrated with a PostgreSQL database. The application leverages JPA and Hibernate for seamless data persistence, providing a robust and scalable backend solution. Docker Compose is used to orchestrate the containers, ensuring easy setup and deployment.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development purposes. See running for notes on how to run the project on a system.\n\n### Prerequisites\n\n1. Clone the project to your local environment:\n    ```\n    git clone https://github.com/ankitrajput0096/Dockerized_SpringBoot_PostgreSQL\n    ```\n\n2. You need maven installed on your environment:\n\n    #### Mac (homebrew):\n    \n    ```\n    brew install maven\n    ```\n    #### Ubuntu:\n    ```\n    sudo apt-get install maven\n    ```\n\n3. You need Docker to be installed:\n\n    #### Windows:\n    https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe\n    \n    #### Mac:\n    https://download.docker.com/mac/stable/Docker.dmg\n    \n    #### Ubuntu:\n    https://docs.docker.com/install/linux/docker-ce/ubuntu/\n\n### Installing\n\nOnce you have maven and docker installed on your environment, install the project dependencies via:\n\n```\nmvn install\n```\n\nBuild docker Image:\n\n```\ndocker-compose build\n```\n\nStart docker:\n\n```\ndocker-compose up\n```\n\n## Running\n\nStart docker:\n```\ndocker-compose up\n```\n\nRun the application from the `Application.java` main method directly,\nor from a command line:\n```\nmvn spring-boot:run\n```\n\nKeep docker running in a separate terminal tab, create another tab to run the application.\n\nYour server should be now running on http://localhost:8090\n\n## Alternate way to start this application\n1. Clone this repository\n2. Bring up the application by just using docker-compose \n    ```\n    sudo docker-compose -f my-docker-compose.yml up\n    ```\n    Your server should be now running on http://localhost:8090\n3. Bring down the application \n    ```\n    sudo docker-compose -f my-docker-compose.yml down\n    ```\n## Get an access to all exposed API's with Postman\n\n1. Install Postman (https://www.getpostman.com)\n2. Import Postman collection from the `Dockerized_SpringBoot_PostgreSQL.postman_collection.json` file\n3. Enjoy !!\n\n## Built With\n\n* [Spring Boot](https://spring.io/projects/spring-boot) - Spring Boot 2\n* [Maven](https://maven.apache.org/) - Dependency Management\n* [Docker](https://www.docker.com/) - For containerization of application\n* [PostgreSQL](https://www.postgresql.org/) - Database\n\n## Contributing\n\nIf you have any improvement suggestions please create a pull request and I'll review it.\n\n\n## Authors\n\n* **Ankit Rajput** - *Initial work* - [Github](https://github.com/ankitrajput0096)\n\n## License\n\nThis project is licensed under the MIT License\n\n## Acknowledgments\n\n* Big thanks to Pivotal for Spring Boot framework, love it!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitrajput0096%2Fdockerized_springboot_postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankitrajput0096%2Fdockerized_springboot_postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitrajput0096%2Fdockerized_springboot_postgresql/lists"}