Skip to content

Commit

Permalink
Add Prisma related steps
Browse files Browse the repository at this point in the history
  • Loading branch information
nesimtunc committed Feb 13, 2022
1 parent 7578295 commit 675dc38
Show file tree
Hide file tree
Showing 5 changed files with 6,879 additions and 6,872 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN echo "NODE_ENV => $NODE_ENV"
WORKDIR /usr/app
COPY package*.json ./

RUN npm install
RUN npm install && npx prisma generate

COPY . .

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ After you have required tech stack above, feel free to run it like this.

```bash
npm install && \
npx prisma generate && \
npm run dev
```
### Run inside Docker
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
- ./src:/usr/app/src
ports:
- "127.0.0.1:${NODEJS_PORT}:3000"
- "127.0.0.1:5555:5555" # Prisma Studioå
- "127.0.0.1:5555:5555" # Prisma Studio
depends_on:
- db
restart: unless-stopped
Expand All @@ -30,6 +30,6 @@ services:
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
# ports:
# - "127.0.0.1:${DB_PORT}:3306" # Container port depends on DB PROVIDER. Can be read .env
# ports: #enable ports if you work locally
# - "127.0.0.1:${DB_PORT}:3306" # Container port depends on DB PROVIDER. Can be read .env
restart: unless-stopped
Loading

0 comments on commit 675dc38

Please sign in to comment.