Skip to content

Commit

Permalink
feat(docker): run Prisma migrate and generate commands
Browse files Browse the repository at this point in the history
  • Loading branch information
TAnas0 committed Sep 12, 2024
1 parent d436d09 commit f7948f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ services:
build: .
env_file:
- ./.env.docker
command: >
sh -c '
sleep 5 &&
npx prisma migrate dev --name init &&
npx prisma generate'
ports:
- 4000:4000

depends_on:
- db

0 comments on commit f7948f4

Please sign in to comment.