{"id":17970347,"url":"https://github.com/cakuki/docker-compose-wrapper","last_synced_at":"2025-04-03T21:43:44.355Z","repository":{"id":88140654,"uuid":"113973144","full_name":"cakuki/docker-compose-wrapper","owner":"cakuki","description":"An example Docker Compose for Microservice Development","archived":false,"fork":false,"pushed_at":"2017-12-13T15:00:15.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T19:16:18.367Z","etag":null,"topics":["docker-compose","microservice","microservice-infrastructure"],"latest_commit_sha":null,"homepage":"https://ckk.im/slides/2017-12-13-docker-compose-for-developing-microservices","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cakuki.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-12T09:55:54.000Z","updated_at":"2022-07-23T03:41:15.000Z","dependencies_parsed_at":"2023-05-18T10:31:11.712Z","dependency_job_id":null,"html_url":"https://github.com/cakuki/docker-compose-wrapper","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/cakuki%2Fdocker-compose-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakuki%2Fdocker-compose-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakuki%2Fdocker-compose-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakuki%2Fdocker-compose-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cakuki","download_url":"https://codeload.github.com/cakuki/docker-compose-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247085982,"owners_count":20881158,"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-compose","microservice","microservice-infrastructure"],"created_at":"2024-10-29T15:05:03.180Z","updated_at":"2025-04-03T21:43:44.337Z","avatar_url":"https://github.com/cakuki.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Compose Wrapper\n\nThis project is an example for \"[Docker Compose for Developing Microservices](https://slides.com/ckk/docker-compose-for-developing-microservices)\" presentation.\n\nSee [`./wrapper`](wrapper) script for scalable [`docker-compose`](https://docs.docker.com/compose/) configuration management.\n\nThis is only intended for local development.\n\n## Running\n\n```bash\n./wrapper up\n```\n\nThen open http://localhost:8080 on your browser.\n\n## How does it work?\n\nInstead of having single `docker-compose.yml` file this project offers a compose config for each service method. There is a different file for each service in `stack` directory. This method intended for increasing visibility and maintainability while developing microservices with Docker Compose.\n\n## Generating service configurations\n\nAs all services in this project have generic form, they are genereted by `stack-generator` with a basic templating.\n\nTo `stack/*.yml` file for each service in `services` directory, run:\n\n```bash\n./stack-generator\n```\n\nThere is a small customization enabled for overring port forwarding. For that please inspect templating script source.\n\n## Explore\n\nYou can basically use any `docker-compose` command with `./wrapper` script. Try `./wrapper config` to see merged output that's being used by Docker Compose process.\n\nYou can run in detached mode:\n\n```bash\n./wrapper up -d\n```\n\nAnd monitor processes via:\n\n```bash\n./wrapper ps\n```\n\nAnd watch logs of a service:\n```bash\n./wrapper logs -f cart-service\n```\n\nRestart a specific service:\n\n```bash\n./wrapper restart checkout\n```\n\nAnd scale:\n\n```bash\n./wrapper up -d --scale payment=3\n```\n\n## License\n\nFeel free to copy anything you like.\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakuki%2Fdocker-compose-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakuki%2Fdocker-compose-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakuki%2Fdocker-compose-wrapper/lists"}