{"id":21261477,"url":"https://github.com/rchanger/docker-example","last_synced_at":"2026-05-11T06:50:39.283Z","repository":{"id":113186275,"uuid":"255866597","full_name":"Rchanger/docker-example","owner":"Rchanger","description":"Small Example of connecting server and client by creating docker image and using docker-compose.","archived":false,"fork":false,"pushed_at":"2021-02-02T16:29:15.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-03-05T17:17:09.110Z","etag":null,"topics":["docker","docker-compose","golang"],"latest_commit_sha":null,"homepage":null,"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/Rchanger.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":"2020-04-15T09:23:09.000Z","updated_at":"2024-06-19T07:54:02.866Z","dependencies_parsed_at":null,"dependency_job_id":"e2f0fee6-3660-4ad5-a7bf-8d266ef5a40b","html_url":"https://github.com/Rchanger/docker-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rchanger%2Fdocker-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rchanger%2Fdocker-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rchanger%2Fdocker-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rchanger%2Fdocker-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rchanger","download_url":"https://codeload.github.com/Rchanger/docker-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695589,"owners_count":20332629,"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","golang"],"created_at":"2024-11-21T04:43:29.454Z","updated_at":"2026-05-11T06:50:39.255Z","avatar_url":"https://github.com/Rchanger.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-example\n## Small Example of connecting server and client by creating docker image and using docker-compose.\nJust execute following command to make it work\n  ~~~\n  docker-compose up\n  ~~~\n\n## The other way of linking two container is using the ___--link___ option.\nPerform following step to achieve the same.\n1. First inside __server__ folder update the copy command in  dockerfile ___from /server . to . .___ and then execute following command to build server image.\n   ~~~ \n   sudo docker build -t server . \n   ~~~\n2. Run the server container by executing following command.   \n   ~~~ \n   sudo docker run -d -p 8090:8090 -e Port=3030 --name server -v test-volume:/serverdata -t server \n   ~~~\n3. Modify the copy command of dockerfile inside __client__ folder ___from /client . to . .___ and excute following command to build the  client image.\n   ~~~\n   sudo docker build -t client .\n   ~~~ \n4. Run the client container by executing following command.\n   ~~~\n   sudo docker run -d -p 9090:9090 -e ServerHost=server -e ServerPort=3030 --name client --link server -v test-volume:/clientdata -t  client\n   ~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frchanger%2Fdocker-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frchanger%2Fdocker-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frchanger%2Fdocker-example/lists"}