From e9a1fedfa320f8268068433b6f83eac5a9a72410 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Mon, 29 Sep 2025 20:40:49 +0200 Subject: [PATCH] Keep db data in mounted volume by default --- .stylelintrc.json | 3 ++- docker-compose.yml | 2 ++ package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index acf1044..daf9c34 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -4,7 +4,8 @@ "./coverage/**", "public/**", "./node_modules", - "docker_node_modules/**" + "docker_node_modules/**", + "./db/**" ], "globbyOptions": { "gitignore": true }, "rules": { diff --git a/docker-compose.yml b/docker-compose.yml index 6180f2d..ecec464 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,8 @@ services: image: mongo:4.4-bionic ports: - "127.0.0.1:${PORT:-2076}7:27017" + volumes: + - "./db:/data/db" test: image: sealious-app:latest diff --git a/package.json b/package.json index 74679d2..86757a0 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "test:ui": "npm run test -- --ui", "test-ci": "TESTS_RUN_IN_DOCKER=true PW_TEST_CONNECT_WS_ENDPOINT=ws://playwright:3000/ npx playwright test", "prepare": "husky", - "lint-css": "stylelint \"**/*.css\" --config ./.stylelintrc.json", + "lint-css": "stylelint \"src/**/*.css\" --config ./.stylelintrc.json", "lint-css-fix": "npm run lint-css -- --fix", "lint-css-report": "npm run --silent lint-css -- --formatter json --output-file .stylelint-result.json", "lint-js": "eslint src",