{"id":22503130,"url":"https://github.com/afa-farkhod/spring-boot-docker-api","last_synced_at":"2026-04-17T00:32:33.556Z","repository":{"id":153819082,"uuid":"619089383","full_name":"afa-farkhod/Spring-Boot-Docker-Api","owner":"afa-farkhod","description":"Springboot java api which runs inside the docker container, and connection is checked with postman api","archived":false,"fork":false,"pushed_at":"2023-07-26T06:06:56.000Z","size":18709,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T01:13:29.299Z","etag":null,"topics":["docker","java","postman","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afa-farkhod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-26T08:29:39.000Z","updated_at":"2023-07-01T02:59:53.000Z","dependencies_parsed_at":"2023-10-03T17:27:30.798Z","dependency_job_id":null,"html_url":"https://github.com/afa-farkhod/Spring-Boot-Docker-Api","commit_stats":null,"previous_names":["afa-farkhod/spring-boot-docker-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afa-farkhod%2FSpring-Boot-Docker-Api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afa-farkhod%2FSpring-Boot-Docker-Api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afa-farkhod%2FSpring-Boot-Docker-Api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afa-farkhod%2FSpring-Boot-Docker-Api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afa-farkhod","download_url":"https://codeload.github.com/afa-farkhod/Spring-Boot-Docker-Api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245938232,"owners_count":20697008,"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","java","postman","springboot"],"created_at":"2024-12-06T23:29:19.171Z","updated_at":"2026-04-17T00:32:33.507Z","avatar_url":"https://github.com/afa-farkhod.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Spring-Boot-Docker-Api](https://spring.io/guides/topicals/spring-boot-docker/)\nSpringboot java api which runs inside the docker container, and connection is checked with postman api\n\n- A Basic Dockerfile\n  - A Spring Boot application is easy to convert into an executable JAR file. All the Getting Started Guides do this, and every application that you download from Spring Initializr has a build step to create an executable JAR. With `Maven`, you run `./mvnw install`, With `Gradle`, you run `./gradlew build`.\n  -  A basic Dockerfile to run that JAR would then look like this, at the top level of your project:\n    ```\n    FROM eclipse-temurin:17-jdk-alpine\n    VOLUME /tmp\n    ARG JAR_FILE\n    COPY ${JAR_FILE} app.jar\n    ENTRYPOINT [\"java\",\"-jar\",\"/app.jar\"]\n    ```\n- Springboot java api which shows the connection with the postman api through the port:8080(locally), port: 8000 (docker), i've already created the image of the java api:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/24220136/227764481-756cb219-6bbd-49f6-9b4e-fad87ec73c1c.png\" alt=\"Image\"\u003e\n\u003c/p\u003e\n\n- Then we start the docker image and direct it to another port:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/24220136/227764655-74576719-6a72-434c-8463-5e311eeaa96a.png\" alt=\"Image\"\u003e\n\u003c/p\u003e\n\n- And now we can check it from postman client side:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/24220136/227764684-80e32615-4053-4830-a1f0-5317bbfc7126.png\" alt=\"Image\"\u003e\n\u003c/p\u003e\n\n- As we can see it is giving the previously created information from the docker container\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/af4092/Spring-Boot-Docker-Api/assets/24220136/f7af8d46-9c36-49ec-90ca-c09809c388e8\" alt=\"Image\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafa-farkhod%2Fspring-boot-docker-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafa-farkhod%2Fspring-boot-docker-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafa-farkhod%2Fspring-boot-docker-api/lists"}