Skip to content

Commit c42b151

Browse files
authored
Automatically remove orphans when running make up (#7164)
1 parent 590d39b commit c42b151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ compose_build: .env
44
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose build
55

66
up:
7-
docker compose up -d redis postgres
7+
docker compose up -d redis postgres --remove-orphans
88
docker compose exec -u postgres postgres psql postgres --csv \
99
-1tqc "SELECT table_name FROM information_schema.tables WHERE table_name = 'organizations'" 2> /dev/null \
1010
| grep -q "organizations" || make create_database
11-
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose up -d --build
11+
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose up -d --build --remove-orphans
1212

1313
test_db:
1414
@for i in `seq 1 5`; do \

0 commit comments

Comments
 (0)