Skip to content

Commit 6b05484

Browse files
committed
update: docker local 환경 스크립트 추가
1 parent c6d47e0 commit 6b05484

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Dockerfile Dockerfile.local

File renamed without changes.

docker-compose.yml docker-compose.local.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
version: "3"
1+
version: '3'
22
services:
3-
kakao-noti-server:
4-
container_name: nestjs-example
3+
nestjs-template-local:
4+
container_name: nestjs-graphql-prisma-template-local
55
build:
66
context: ./
7-
dockerfile: ./Dockerfile
7+
dockerfile: ./Dockerfile.local
88
platform: linux/amd64
9-
image: nestjs-example
109
restart: always
1110
ports:
1211
- 3000:3000

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"start:dev": "nest start --watch",
1414
"start:debug": "nest start --debug --watch",
1515
"start:prod": "node dist/main",
16+
"docker:up": "docker-compose up -d --force-recreate",
17+
"docker:down": "docker-compose down",
1618
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
1719
"test": "jest",
1820
"test:watch": "jest --watch",

0 commit comments

Comments
 (0)