Skip to content

Commit

Permalink
Merge pull request #265 from Quickchive/chore/add-redis-setting
Browse files Browse the repository at this point in the history
chore: add redis npm script
  • Loading branch information
stae1102 authored Feb 9, 2024
2 parents bd7fa71 + 95e3b75 commit 6ef8b77
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
15 changes: 15 additions & 0 deletions redis-server.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6ef8b77

Please sign in to comment.