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", 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