Last active
April 7, 2022 22:29
-
-
Save dev01d/bf8a54c4482a557bf8990557e2ba12f3 to your computer and use it in GitHub Desktop.
Docker compose makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: start down destroy stop pull restart logs | |
.DEFAULT_GOAL := restart | |
start: | |
docker compose up -d --remove-orphans $(c) | |
down: | |
docker compose down $(c) | |
destroy: | |
docker compose down -v $(c) | |
stop: | |
docker compose stop $(c) | |
pull: | |
docker compose pull $(c) | |
restart: pull start | |
logs: | |
docker compose logs --tail=100 -f $(c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment