generated from akmamun/gin-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
24 lines (20 loc) · 710 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
help:
@echo ''
@echo 'Usage: make [TARGET] [EXTRA_ARGUMENTS]'
@echo 'Targets:'
@echo 'make dev: make dev for development work'
@echo 'make build: make build container'
@echo 'make production: docker production build'
@echo 'clean: clean for all clear docker images'
dev:
docker-compose -f docker-compose-dev.yml down
if [ ! -f .env ]; then cp .env.example .env; fi;
docker-compose -f docker-compose-dev.yml up
build:
docker-compose -f docker-compose-prod.yml build
docker-compose -f docker-compose-dev.yml down build
production:
docker-compose -f docker-compose-prod.yml up -d --build
clean:
docker-compose -f docker-compose-prod.yml down -v
docker-compose -f docker-compose-dev.yml down -v