1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 23:15:24 +02:00

add docker services to build

This commit is contained in:
Brian Giometti 2024-01-11 08:17:09 -07:00
parent 80df3ea261
commit 410da614ef
2 changed files with 8 additions and 1 deletions

View file

@ -32,6 +32,7 @@ You'll need Docker installed to run the app locally.
``` ```
cp .env.example .env cp .env.example .env
yarn install yarn install
yarn run dev:services
yarn prisma:migrate:dev yarn prisma:migrate:dev
yarn prisma:seed yarn prisma:seed
yarn dev yarn dev
@ -81,6 +82,12 @@ yarn install # re-run if it hangs
yarn dev yarn dev
``` ```
#### Start Postgres & Redis Services
```
yarn run dev:services
```
#### Migrate DB #### 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`. 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`.

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"dev": "nx run-many --target serve --projects=client,advisor,server,workers --parallel --host 0.0.0.0 --nx-bail=true --maxParallel=100", "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:services:all": "COMPOSE_PROFILES=services,ngrok,stripe docker-compose up",
"dev:workers:test": "nx test workers --skip-nx-cache --runInBand", "dev:workers:test": "nx test workers --skip-nx-cache --runInBand",
"dev:server:test": "nx test server --skip-nx-cache --runInBand", "dev:server:test": "nx test server --skip-nx-cache --runInBand",