Last active
June 5, 2018 19:45
-
-
Save nicr9/d32b0fe6c1a275fa20e7b1f60573d2a0 to your computer and use it in GitHub Desktop.
Example Makefile for docker project
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
# Admin commands | |
all: build up | |
build: | |
docker-compose build | |
up: | |
docker-compose up -d | |
clean: | |
docker-compose stop | |
docker-compose rm -f --all | |
# Debugging commands | |
logs | |
docker-compose logs -f api | |
tests: | |
docker exec myapp_api pytest | |
bash: | |
docker exec -it myapp_api /bin/bash | |
mysql | |
docker exec -it myapp_mysql mysql -uroot -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment