-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
40 lines (29 loc) · 1.08 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
help:
@echo "docker-compose commands:"
@echo " make down: Removes all docker containers running"
@echo " make down_init: Removes all docker containers running including the init service"
@echo " make up: Up all services - Starts all services"
@echo " make bash: Bash into application container"
@echo " make ps: list containers/services"
@echo " make restart: restart (removes all services and restart them -- without rebuilding)"
@echo " make build: build (usually, requires to build when changes happen to the Dockerfile or docker-compose.yml)"
down:
docker compose down && docker compose rm -f
down_init:
docker compose --file docker-compose-init.yml down && docker-compose rm -f
rm_all:
docker rm -f $(docker ps -aq)
up:
docker compose up -d
up_init:
docker compose --file docker-compose-init.yml up -d
ps:
docker compose ps
restart:
make rm && make up
build:
docker compose build
build_init:
docker compose --file docker-compose-init.yml build
bash:
docker compose run --rm superset bash