This commit is contained in:
parent
f1ac6429c7
commit
75827c3bc7
22
docker-compose.db.yml
Normal file
22
docker-compose.db.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
services:
|
||||||
|
mongo:
|
||||||
|
image: mongo:6.0.5
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- mongo:/data/db
|
||||||
|
command:
|
||||||
|
- --storageEngine=wiredTiger
|
||||||
|
environment:
|
||||||
|
- "MONGO_INITDB_ROOT_USERNAME=mongo"
|
||||||
|
- "MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}"
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
ports:
|
||||||
|
- 27017:27017
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mongo:
|
@ -5,6 +5,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "docker compose up",
|
"dev": "docker compose up",
|
||||||
|
"dev:db": "docker compose -f docker-compose.db.yaml up",
|
||||||
"dev:next": "cross-env NODE_OPTIONS=--no-deprecation next dev",
|
"dev:next": "cross-env NODE_OPTIONS=--no-deprecation next dev",
|
||||||
"devturbo": "cross-env NODE_OPTIONS=--no-deprecation next dev --turbo",
|
"devturbo": "cross-env NODE_OPTIONS=--no-deprecation next dev --turbo",
|
||||||
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
|
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
|
||||||
|
Loading…
Reference in New Issue
Block a user