Skip to content

Commit

Permalink
docker: deploy prisma migrations on init
Browse files Browse the repository at this point in the history
  • Loading branch information
makinbacon21 committed Apr 22, 2024
1 parent 09f1cf8 commit c1ab32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
- 'traefik.http.routers.cygnet.tls=true'
- 'traefik.http.routers.cygnet.tls.certresolver=letsEncrypt'
- 'traefik.http.services.cygnet.loadbalancer.server.port=3000'
command: "npm start"
command: sh -c "sleep 10 && npx prisma migrate deploy && npm start"
networks:
- traefik
- internal
Expand Down

0 comments on commit c1ab32e

Please sign in to comment.