{"id":20171139,"url":"https://github.com/andreastedile/sde","last_synced_at":"2026-06-08T12:01:44.595Z","repository":{"id":104614954,"uuid":"310061524","full_name":"andreastedile/sde","owner":"andreastedile","description":"Demonstration of Docker and Docker compose basic usage for the Service Design and Engineering course","archived":false,"fork":false,"pushed_at":"2020-11-11T20:23:11.000Z","size":2010,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T04:26:10.766Z","etag":null,"topics":[],"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/andreastedile.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-11-04T16:45:09.000Z","updated_at":"2022-06-02T18:51:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"25f6b331-ce4f-4223-9e96-e4bfb0a7f5e5","html_url":"https://github.com/andreastedile/sde","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreastedile/sde","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fsde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fsde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fsde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fsde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreastedile","download_url":"https://codeload.github.com/andreastedile/sde/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fsde/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34061123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-14T01:23:30.200Z","updated_at":"2026-06-08T12:01:44.576Z","avatar_url":"https://github.com/andreastedile.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Voting App\n\nClone the repository:\n\n```\n$ git clone https://github.com/andreastedile/sde\n```\n\nAll the following commands must be issued from the project's root directory.\n\n## Manual build\n\n```\n$ docker build -t dbapi db_api\n$ docker build -t voteapi vote_api\n$ docker build -t resultsapi results_api\n```\n\n## Manual run\n\n```\n$ docker network create voting-app-net\n\n$ docker run \\\n\t-e \"POSTGRES_USER=postgres\" \\\n\t-e \"POSTGRES_PASSWORD=password\" \\\n\t-e \"POSTGRES_DB=dbvotes\" \\\n\t-v $(pwd)/db_api/init.sql:/docker-entrypoint-initdb.d/init.sql \\\n\t--network voting-app-net \\\n\t--hostname db \\\n\t--name db \\\n\t-d \\\n\tpostgres\n\n$ docker run \\\n\t-e \"DB_HOST=db\" \\\n\t-e \"DB_USER=postgres\" \\\n\t-e \"DB_PASSWORD=password\" \\\n\t-e \"POSTGRES_DB=dbvotes\" \\\n\t-p 5000:80 \\\n\t--network voting-app-net \\\n\t--hostname dbapi \\\n\t--name dbapi \\\n\t-d \\\n\tdbapi\n\t\n$ docker run \\\n\t-e \"DB_HOST=dbapi\" \\\n\t-p 7000:80 \\\n\t--network voting-app-net \\\n\t--hostname voteapi \\\n\t--name voteapi \\\n\t-d \\\n\tvoteapi\n\n$ docker run \\\n\t-e \"DB_HOST=dbapi\" \\\n\t-p 8000:80 \\\n\t--network voting-app-net \\\n\t--hostname resultsapi \\\n\t--name resultsapi \\\n\t-d \\\n\tresultsapi\n```\n\n## Automatic build\n\n```\n$ docker-compose build\n```\n\n## Automatic run\n\n```\n$ docker-compose up\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreastedile%2Fsde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreastedile%2Fsde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreastedile%2Fsde/lists"}