Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 80469db

Browse filesBrowse files
Manuel Dorado SerranoManuel Dorado Serrano
Manuel Dorado Serrano
authored and
Manuel Dorado Serrano
committed
add docker compose configuration
1 parent 34c0237 commit 80469db
Copy full SHA for 80469db

File tree

3 files changed

+14
-2
lines changed
Filter options

3 files changed

+14
-2
lines changed

‎.gitignore

Copy file name to clipboard
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
3-
.env
3+
.env
4+
mongo-data

‎docker-compose.yml

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
gex-store-db:
3+
container_name: gex-store-db
4+
image: mongo:8.0.3
5+
ports:
6+
- '27017:27017'
7+
volumes:
8+
- ./mongo-data:/data/db
9+
volumes:
10+
mongo-data:

‎package.json

Copy file name to clipboardExpand all lines: package.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"type": "module",
77
"scripts": {
88
"prestart": "node ./create-dev-env.js",
9-
"start": "run-p -l type-check:watch start:dev",
9+
"start": "run-p -l type-check:watch start:dev start:local-db",
1010
"start:dev": "tsx --require dotenv/config --watch src/index.ts",
1111
"start:console-runners": "tsx --require dotenv/config --watch src/console-runners/index.ts",
12+
"start:local-db": "docker compose up -d",
1213
"type-check": "tsc --noEmit --preserveWatchOutput",
1314
"type-check:watch": "npm run type-check -- --watch"
1415
},

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.