{"id":15734867,"url":"https://github.com/llaville/devilbox-docker-compose-makefile","last_synced_at":"2025-07-23T14:02:34.028Z","repository":{"id":139864476,"uuid":"275795944","full_name":"llaville/devilbox-docker-compose-makefile","owner":"llaville","description":"Makefile Template for docker-compose of the Devilbox - https://github.com/cytopia/devilbox","archived":false,"fork":false,"pushed_at":"2020-07-02T11:46:37.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T08:29:50.321Z","etag":null,"topics":["devilbox","docker-compose","makefile","makefile-template"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/llaville.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":"2020-06-29T11:36:41.000Z","updated_at":"2020-07-02T11:46:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b6d0aba-c51d-42ca-991c-e0ccd163b74f","html_url":"https://github.com/llaville/devilbox-docker-compose-makefile","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"502f2d98fa49dd8d77a5eea8bd06f0ac07eac2dc"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llaville%2Fdevilbox-docker-compose-makefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llaville%2Fdevilbox-docker-compose-makefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llaville%2Fdevilbox-docker-compose-makefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llaville%2Fdevilbox-docker-compose-makefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llaville","download_url":"https://codeload.github.com/llaville/devilbox-docker-compose-makefile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413243,"owners_count":20773053,"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":["devilbox","docker-compose","makefile","makefile-template"],"created_at":"2024-10-04T01:03:05.223Z","updated_at":"2025-03-31T03:46:07.127Z","avatar_url":"https://github.com/llaville.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Devilbox docker-compose makefile\n\nMakefile Template for docker-compose of the [Devilbox](https://github.com/cytopia/devilbox)\n\n## INSTALLATION\nTo install mk-lib run command\n```bash\ncurl -sL https://git.io/JJU2I | sh\n```\n\n## UPGRADE\nTo upgrade existing mk-lib run command\n```bash\nmake mk-upgrade\n```\n\n## USAGE\n**Common**\n- `make console` - open PHP container's console\n\n**From Makefile.minimal.mk** - samples\n- `make up` - start all containers in foreground\n- `make start` - start all containers in background\n- `make start` **c=php** - start only php container\n- `make stop` - stop all containers\n- `make stop` **c=php** - stop only php container\n- `make restart` - restart all containers\n- `make restart` **c=\"httpd php\"** - restart httpd and php containers\n- `make status` - show list of containers with statuses\n- `make down` - stop all containers and removes containers, networks, volumes, and images created by up or start\n- `make compose` - configure the full stack containers\n- `make compose` **c=\"elk\"** - configure the stack with all default and elk containers\n- `make compose` **DEVILBOX_COMPOSE_DIR=/path/to/compose_files c=\"revealjs portainer\"** - configure the stack with all default and revealjs plus portainer containers\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 the 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* **DOCKER_COMPOSE_OVERRIDE_FILE** - docker-compose.override.yml file\n\n## SAMPLES\nBasic commands (you can copy and paste it into your Makefile)\n\n```makefile\n# REQUIRED SECTION\nROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))\ninclude $(ROOT_DIR)/.mk-lib/common.mk\n# END OF REQUIRED SECTION\n\n.PHONY: help up down start stop restart status console compose\n\nup: ## Start all or c=\u003cname\u003e containers in foreground\n\t@$(DOCKER_COMPOSE) $(strip -f $(DOCKER_COMPOSE_FILE) -f $(DOCKER_COMPOSE_OVERRIDE_FILE) $(foreach container,$(filter-out $(DEVILBOX_MAIN_CONTAINERS),$(DEVILBOX_CONTAINERS)),-f $(DEVILBOX_COMPOSE_DIR)/$(DEVILBOX_COMPOSE_FILE_PATTERN)$(container))) up $(c)\n\ndown: ## Stop all containers and removes containers, networks, volumes, and images created by up or start\n\t@$(DOCKER_COMPOSE) $(strip -f $(DOCKER_COMPOSE_FILE) -f $(DOCKER_COMPOSE_OVERRIDE_FILE) $(foreach container,$(filter-out $(DEVILBOX_MAIN_CONTAINERS),$(DEVILBOX_CONTAINERS)),-f $(DEVILBOX_COMPOSE_DIR)/$(DEVILBOX_COMPOSE_FILE_PATTERN)$(container))) down --remove-orphans\n\nstart: ## Start all or c=\u003cname\u003e containers in background\n\t@$(DOCKER_COMPOSE) $(strip -f $(DOCKER_COMPOSE_FILE) -f $(DOCKER_COMPOSE_OVERRIDE_FILE) $(foreach container,$(filter-out $(DEVILBOX_MAIN_CONTAINERS),$(DEVILBOX_CONTAINERS)),-f $(DEVILBOX_COMPOSE_DIR)/$(DEVILBOX_COMPOSE_FILE_PATTERN)$(container))) up -d $(c)\n\nstop: ## Stop all or c=\u003cname\u003e containers\n\t@$(DOCKER_COMPOSE) $(strip -f $(DOCKER_COMPOSE_FILE) -f $(DOCKER_COMPOSE_OVERRIDE_FILE) $(foreach container,$(filter-out $(DEVILBOX_MAIN_CONTAINERS),$(DEVILBOX_CONTAINERS)),-f $(DEVILBOX_COMPOSE_DIR)/$(DEVILBOX_COMPOSE_FILE_PATTERN)$(container))) stop $(c)\n\nrestart: ## Restart all or c=\u003cname\u003e containers\n\t@$(DOCKER_COMPOSE) $(strip -f $(DOCKER_COMPOSE_FILE) -f $(DOCKER_COMPOSE_OVERRIDE_FILE) $(foreach container,$(filter-out $(DEVILBOX_MAIN_CONTAINERS),$(DEVILBOX_CONTAINERS)),-f $(DEVILBOX_COMPOSE_DIR)/$(DEVILBOX_COMPOSE_FILE_PATTERN)$(container))) stop $(c)\n\t@$(DOCKER_COMPOSE) $(strip -f $(DOCKER_COMPOSE_FILE) -f $(DOCKER_COMPOSE_OVERRIDE_FILE) $(foreach container,$(filter-out $(DEVILBOX_MAIN_CONTAINERS),$(DEVILBOX_CONTAINERS)),-f $(DEVILBOX_COMPOSE_DIR)/$(DEVILBOX_COMPOSE_FILE_PATTERN)$(container))) up -d $(c)\n\nstatus: ## Show status of containers\n\t@$(DOCKER_COMPOSE) $(strip -f $(DOCKER_COMPOSE_FILE) -f $(DOCKER_COMPOSE_OVERRIDE_FILE) $(foreach container,$(filter-out $(DEVILBOX_MAIN_CONTAINERS),$(DEVILBOX_CONTAINERS)),-f $(DEVILBOX_COMPOSE_DIR)/$(DEVILBOX_COMPOSE_FILE_PATTERN)$(container))) ps\n\nconsole: ## Enter the php container\n\t@$(DOCKER_COMPOSE) exec --user devilbox php bash -l\n\ncompose: ## Configure the stack containers with c=\u003cname\u003e list\n\t@$(file \u003e $(MAKE_ENV),DEVILBOX_CONTAINERS=$(strip $(c)))\n\t@echo Devilbox Stack is composed. $(MAKE_ENV) file was updated.\n```\n\n## CUSTOMIZATION\nYou can create _.make.env_ file in the directory with Makefile or the current directory.\n\nAvailable variables\n\n* **DEVILBOX_CONTAINERS** = default containers to execute; Main containers {httpd php mysql pgsql redis memcd mongo} by default.\n\n## CHANGELOG\nSee [CHANGELOG](CHANGELOG.md)\n\n## LICENSE\nMIT (see [LICENSE](LICENSE))\n\n## AUTHOR\n[Laurent Laville](https://github.com/llaville) Lead Dev of this project\n\n## CREDITS\n[Roman Kudlay](https://github.com/krom) for its [Makefile template for docker-compose](https://github.com/krom/docker-compose-makefile)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllaville%2Fdevilbox-docker-compose-makefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllaville%2Fdevilbox-docker-compose-makefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllaville%2Fdevilbox-docker-compose-makefile/lists"}