Skip to content

Commit f2d217d

Browse files
committed
Add command to launch database in background
1 parent e34995f commit f2d217d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.16.3-slim as builder
1+
FROM node:12.16.3-slim
22

33
WORKDIR /code
44

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY = default deps build test start clean
1+
.PHONY = default deps build test start clean start-database
22

33
IMAGE_NAME := codelytv/typescript-ddd-skeleton
44
SERVICE_NAME := app
@@ -33,3 +33,7 @@ start: build
3333
# Clean containers
3434
clean:
3535
docker-compose down --rmi local --volumes --remove-orphans
36+
37+
# Start mongodb container in background
38+
start_database:
39+
docker-compose up -d mongo

0 commit comments

Comments
 (0)