Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added app-data/.seeded
Empty file.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ services:
- NODE_ENV=production
depends_on:
- postgres
command: sh -c "cd src && npx prisma migrate deploy && npx prisma db seed && cd .. && npm start"
command: sh -c "cd src && npx prisma migrate deploy && [ -f /app/data/.seeded ] || (npx prisma db seed && touch /app/data/.seeded) && cd .. && npm start"
networks:
- app-network
volumes:
- ./src:/app/src
- ./app-data:/app/data

postgres:
image: postgres:15
Expand Down
Loading