From 410da614ef26f648dd2ff3cb83ec0b21d0db35a4 Mon Sep 17 00:00:00 2001 From: Brian Giometti Date: Thu, 11 Jan 2024 08:17:09 -0700 Subject: [PATCH] add docker services to build --- README.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4047650a..f54ebe77 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ You'll need Docker installed to run the app locally. ``` cp .env.example .env yarn install +yarn run dev:services yarn prisma:migrate:dev yarn prisma:seed yarn dev @@ -81,6 +82,12 @@ yarn install # re-run if it hangs yarn dev ``` +#### Start Postgres & Redis Services + +``` +yarn run dev:services +``` + #### Migrate DB In a separate terminal, run the following command. This will connect to the Postgres DB running inside Docker and run all the migrations in `/prisma/migrations`. diff --git a/package.json b/package.json index c420564a..129f4d67 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "license": "MIT", "scripts": { "dev": "nx run-many --target serve --projects=client,advisor,server,workers --parallel --host 0.0.0.0 --nx-bail=true --maxParallel=100", - "dev:services": "COMPOSE_PROFILES=services docker-compose up", + "dev:services": "COMPOSE_PROFILES=services docker-compose up -d", "dev:services:all": "COMPOSE_PROFILES=services,ngrok,stripe docker-compose up", "dev:workers:test": "nx test workers --skip-nx-cache --runInBand", "dev:server:test": "nx test server --skip-nx-cache --runInBand",