From cbd410f732303484e59ff36fff99dd8afaa93d17 Mon Sep 17 00:00:00 2001 From: eduardozgz Date: Mon, 22 Jul 2024 12:06:53 +0200 Subject: [PATCH] Add docker scripts --- README.md | 2 +- package.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1393102dd..79b72dcfe 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Remember that you can't hot-reload this file, you must fully restart the app to ## Starting the bot and website ``` -docker compose -f docker-compose.dev.yml up -d +npm run dev:docker:up npm run dev ``` diff --git a/package.json b/package.json index 783195f78..5e4c24c66 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,8 @@ "clean:workspaces": "turbo clean", "db:push": "pnpm -F db push", "dev": "turbo dev --parallel", + "dev:docker:up": "docker compose -f docker-compose.dev.yml up -d", + "dev:docker:down": "docker compose -f docker-compose.dev.yml down", "start": "turbo start --parallel", "format": "turbo format --continue -- --cache --cache-location node_modules/.cache/.prettiercache", "format:fix": "turbo format --continue -- --write --cache --cache-location node_modules/.cache/.prettiercache",