Skip to content

Commit

Permalink
docker: Mount src/prisma/node_modules instead of mounting the whole d…
Browse files Browse the repository at this point in the history
…irectory

Also run migrations in entrypoint-dev.sh

Signed-off-by: Woomymy <woomy@woomy.be>
  • Loading branch information
Woomymy committed Feb 2, 2023
1 parent 74b41bb commit 8035030
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ services:
context: ".."
dockerfile: "./docker/Dockerfile.dev"
volumes:
- "..:/usr/src/bot"
- "../src:/usr/src/bot/src"
- "../prisma:/usr/src/bot/prisma"
- "../node_modules:/usr/src/bot/node_modules"
networks:
- fiibot-interserver
env_file:
Expand Down
1 change: 1 addition & 0 deletions docker/entrypoint-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ do
echo "PostgreSQL is starting... Waiting"
sleep 1
done
npm run migrate:dev
tsc-watch --onSuccess "npm run start-build"

0 comments on commit 8035030

Please # to comment.