File tree Expand file tree Collapse file tree 5 files changed +28
-24
lines changed
Expand file tree Collapse file tree 5 files changed +28
-24
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 22
33set -e
44
5+ BASE_DIR=" $( cd " $( dirname " $0 " ) /../.." && pwd) "
6+
57echo " Stopping all docker containers..."
6- docker compose -f docker-compose.local.yml down
8+ docker compose -f " ${BASE_DIR} / docker-compose.local.yml" down
79
810echo " Pruning unused Docker images..."
911docker image prune -f
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # 명령이 0이 아닌 종료값을 가질때 즉시 종료
4+ set -e
5+
6+ BASE_DIR=" $( cd " $( dirname " $0 " ) /../.." && pwd) "
7+
8+ if [ ! -d " ${BASE_DIR} /mysql_data_local" ]; then
9+ echo " mysql_data_local 디렉토리가 없습니다. ${BASE_DIR} /mysql_data_local 디렉토리를 생성합니다."
10+ mkdir -p " ${BASE_DIR} /mysql_data_local"
11+ fi
12+
13+ if [ ! -d " ${BASE_DIR} /redis_data_local" ]; then
14+ echo " redis_data_local 디렉토리가 없습니다. ${BASE_DIR} /redis_data_local 디렉토리를 생성합니다."
15+ mkdir -p " ${BASE_DIR} /redis_data_local"
16+ fi
17+
18+ echo " Starting all docker containers..."
19+ docker compose -f " ${BASE_DIR} /docker-compose.local.yml" up -d
20+
21+ echo " Pruning unused Docker images..."
22+ docker image prune -f
23+
24+ echo " Containers are up and running."
25+ docker compose ps -a
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments