Add standalone db script
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tobias 2024-06-25 11:50:12 +02:00
parent f1ac6429c7
commit 75827c3bc7
2 changed files with 23 additions and 0 deletions

22
docker-compose.db.yml Normal file
View 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:

View File

@ -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",