From 9a1c8589623117de16b3c9497b8c8af449e064ba Mon Sep 17 00:00:00 2001 From: stae1102 Date: Fri, 9 Feb 2024 18:32:41 +0900 Subject: [PATCH 1/2] chore: add redis docker compose --- redis-server.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 redis-server.yaml diff --git a/redis-server.yaml b/redis-server.yaml new file mode 100644 index 0000000..50fd20d --- /dev/null +++ b/redis-server.yaml @@ -0,0 +1,15 @@ +version: '3' + +services: + redis: # Name of container + image: redis:latest + restart: always + ports: + - 6380:6379 + networks: + - shared-network + container_name: redis + +networks: + shared-network: + driver: bridge \ No newline at end of file From 95e3b75f0cac9695476c819ed0797ad43e494569 Mon Sep 17 00:00:00 2001 From: stae1102 Date: Fri, 9 Feb 2024 18:32:50 +0900 Subject: [PATCH 2/2] chore: add start local npm script --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index f4d741a..f066875 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,8 @@ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "cross-env NODE_ENV=prod nest start", "start:dev": "TZ=Asia/Seoul cross-env NODE_ENV=dev nest start --watch", + "start:local": "npm run start:redis && TZ=Asia/Seoul NODE_ENV=dev nest start --watch", + "start:redis": "docker-compose -f ./redis-server.yaml up -d", "start:debug": "nest start --debug --watch", "start:prod": "node dist/main", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",