{"id":13588111,"url":"https://github.com/krom/docker-compose-makefile","last_synced_at":"2025-04-08T02:34:45.532Z","repository":{"id":145389301,"uuid":"111471574","full_name":"krom/docker-compose-makefile","owner":"krom","description":"Makefile template for docker-compose","archived":false,"fork":false,"pushed_at":"2024-01-16T23:18:32.000Z","size":771,"stargazers_count":87,"open_issues_count":0,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-06T07:40:16.302Z","etag":null,"topics":["docker-compose","makefile","makefile-template"],"latest_commit_sha":null,"homepage":"https://kudlay.pro/docker-compose-makefile/","language":"Shell","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/krom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-11-20T22:52:46.000Z","updated_at":"2024-07-12T18:31:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"2da5baed-a6f2-4b2e-8bbf-485680c058e8","html_url":"https://github.com/krom/docker-compose-makefile","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krom%2Fdocker-compose-makefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krom%2Fdocker-compose-makefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krom%2Fdocker-compose-makefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krom%2Fdocker-compose-makefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krom","download_url":"https://codeload.github.com/krom/docker-compose-makefile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247765118,"owners_count":20992242,"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","makefile","makefile-template"],"created_at":"2024-08-01T15:06:30.986Z","updated_at":"2025-04-08T02:34:45.222Z","avatar_url":"https://github.com/krom.png","language":"Shell","funding_links":[],"categories":["Shell","docker-compose"],"sub_categories":[],"readme":"# Docker compose makefile\n[![Build Status](https://travis-ci.org/krom/docker-compose-makefile.svg?branch=master)](https://travis-ci.org/krom/docker-compose-makefile)\n[![Release](https://img.shields.io/github/release/krom/docker-compose-makefile.svg)](https://github.com/krom/docker-compose-makefile/releases/latest)\n[![Commits since last release](https://img.shields.io/github/commits-since/krom/docker-compose-makefile/latest.svg)](https://github.com/krom/docker-compose-makefile/commits/master)\n[![Github All Releases](https://img.shields.io/github/downloads/krom/docker-compose-makefile/total.svg)](https://github.com/krom/docker-compose-makefile)\n[![GitHub issues](https://img.shields.io/github/issues/krom/docker-compose-makefile.svg)](https://github.com/krom/docker-compose-makefile/issues)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/krom/docker-compose-makefile.svg)](https://github.com/krom/docker-compose-makefile/pulls)\n[![license](https://img.shields.io/github/license/krom/docker-compose-makefile.svg)](https://github.com/krom/docker-compose-makefile/blob/master/LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/krom/docker-compose-makefile.svg?style=social\u0026label=Stars)](https://github.com/krom/docker-compose-makefile/stargazers)\n\nTemplate and lib for docker-compose\n\n## INSTALLATION\n### INSTALLATION\nTo install mk-lib run command\n```bash\ncurl -sL https://git.io/vh4Gn | sh\n```\n\n### UPGRADE\nTo upgrade existing mk-lib run command\n```bash\nmake mk-upgrade\n```\n\n## USAGE\n![Screen](https://raw.githubusercontent.com/krom/docker-compose-makefile/master/docs/screencast.gif)\n\n**Common** (see [samples](https://github.com/krom/docker-compose-makefile/tree/master/samples))\n- `make console` - open container's console\n\n**From Makefile.minimal.mk** (see [samples](https://github.com/krom/docker-compose-makefile/tree/master/samples))\n- `make start` - start all containers\n- `make start` c=hello - start container hello\n- `make stop` - stop all containers\n- `make status` - show list of containers with statuses\n- `make logs` - show logs\n- `make clean` - clean all data\n\n**From this library**\n- `make help` - show help (see above)\n- `make mk-upgrade` - check for updates of mk-lib\n- `make mk-version` - show current version of mk-lib\n\n### VARIABLES\n* **ROOT_DIR** - full path to dir with *Makefile*\n* **MK_DIR** - fill path to *.mk-lib* dir\n* **DOCKER_COMPOSE** - docker-compose executable command\n* **DOCKER_COMPOSE_FILE** - docker-compose.yml file \n\n## SAMPLES\n\nBasic commands (you can copy and paste it into your Makefile)\n\n```makefile\nup: ## Start all or c=\u003cname\u003e containers in foreground\n\t@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) up $(c)\n\nstart: ## Start all or c=\u003cname\u003e containers in background\n\t@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) up -d $(c)\n\nstop: ## Stop all or c=\u003cname\u003e containers\n\t@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) stop $(c)\n\nstatus: ## Show status of containers\n\t@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) ps\n\nrestart: ## Restart all or c=\u003cname\u003e containers\n\t@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) stop $(c)\n\t@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) up $(c) -d\n\nlogs: ## Show logs for all or c=\u003cname\u003e containers\n\t@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) logs --tail=100 -f $(c)\n\nclean: confirm ## Clean all data\n\t@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) down\n```\nYou may see samples [here](https://github.com/krom/docker-compose-makefile/tree/master/samples)\n\n## CUSTOMIZATION\nYou can create _.make.env_ file in directory with Makefile or **current** directory\n\nAvailable variables\n\n* **DOCKER_COMPOSE** = {docker-compose executable command}\n* **DOCKER_COMPOSE_FILE** = {custom docker-compose.yml file}\n\n## TO-DO\n- check dependencies\n- update readme\n\n## CHANGELOG\nSee [CHANGELOG](CHANGELOG.md)\n\n## LICENSE\nMIT (see [LICENSE](LICENSE))\n\n## AUTHOR\n[Roman Kudlay](http://roman.kudlay.pro) ([roman@kudlay.pro](mailto:roman@kudlay.pro))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrom%2Fdocker-compose-makefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrom%2Fdocker-compose-makefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrom%2Fdocker-compose-makefile/lists"}