{"id":14975883,"url":"https://github.com/fikriprayoga1/docker-go-mongo","last_synced_at":"2025-10-30T06:21:25.331Z","repository":{"id":233461258,"uuid":"364171352","full_name":"fikriprayoga1/docker-go-mongo","owner":"fikriprayoga1","description":"This repository is tutorial for create and run docker image with golang script for rest api and mongodb as database","archived":false,"fork":false,"pushed_at":"2021-09-23T22:43:33.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T02:18:15.660Z","etag":null,"topics":["docker","dockercompose","golang","mongodb"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fikriprayoga1.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":"2021-05-04T07:14:25.000Z","updated_at":"2023-07-17T01:31:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c967e1b-0001-4478-849e-36c7c8628ee8","html_url":"https://github.com/fikriprayoga1/docker-go-mongo","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.2727272727272727,"last_synced_commit":"c11e8a27afec40e6124e3b16ff7e5e03fe9c0204"},"previous_names":["fikriprayoga1/docker-go-mongo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fikriprayoga1%2Fdocker-go-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fikriprayoga1%2Fdocker-go-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fikriprayoga1%2Fdocker-go-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fikriprayoga1%2Fdocker-go-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fikriprayoga1","download_url":"https://codeload.github.com/fikriprayoga1/docker-go-mongo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241110826,"owners_count":19911399,"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","dockercompose","golang","mongodb"],"created_at":"2024-09-24T13:52:48.768Z","updated_at":"2025-10-30T06:21:25.240Z","avatar_url":"https://github.com/fikriprayoga1.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Documentation\nThis is the repository of fikriprayoga1/go-mongo in docker hub. Function of this repository is guide to create image of fikriprayoga1/go-mongo in docker hub, so you can learn how to create image and run the docker system image easily. This repository is part of https://hub.docker.com/repository/docker/fikriprayoga1/go-mongo project\n\n## Best Practice\nUse this command in your CMD(Windows) or Terminal(Mac or Linux). Before start the command, you must be in the directory of the folder you pulled.\n\n### Step 1. Create fikriprayoga1/go-mongo image\n```\ndocker build -t fikriprayoga1/go-mongo:1.0 .\n```\n\n### Step 2. Pull mongodb image\n```\ndocker pull mongo\n```\n\n### Step 3. Run docker compose\n```\ndocker-compose up\n```\n\n### Step 4. Test in Postman app\nYou can use Postman app to test server with this configuration. Please import postman collection file in this folder to your postman app collection, and then try the API\n\n## Warning\nEnsure the system running before you try API. You can run 'docker logs go-mongo' command to see the log, if you have seen 'Server listener started.' log, you can try the API\n\n## Utility Command\nThis part is command line to help you something\n\n### Show running container list\n```\ndocker container ls\n```\n\n### Show image list\n```\ndocker images\n```\n\n### Show  container list\n```\ndocker container ls -a\n```\n\n### Show  container log for debugging\n```\ndocker logs go-mongo\n```\n\n### Show network list\n```\ndocker network ls\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffikriprayoga1%2Fdocker-go-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffikriprayoga1%2Fdocker-go-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffikriprayoga1%2Fdocker-go-mongo/lists"}