File tree Expand file tree Collapse file tree 3 files changed +40
-2
lines changed
Expand file tree Collapse file tree 3 files changed +40
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ COPY --from=builder /triggerdotdev/scripts ./scripts
6363
6464EXPOSE 3000
6565
66+ # This is needed to run migrations in the entrypoint.sh script (TODO: figure out a better way to do this)
6667RUN npm install -g prisma@4.16.0
67- RUN npm install -g ts-node
68+ RUN npm install -g ts-node@10.9.1
6869
6970CMD ["./scripts/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1+ version : " 3"
2+
3+ volumes :
4+ database-data :
5+
6+ networks :
7+ app_network :
8+ external : false
9+
10+ services :
11+ db :
12+ container_name : db
13+ image : postgres:latest
14+ restart : always
15+ volumes :
16+ - database-data:/var/lib/postgresql/data/
17+ environment :
18+ POSTGRES_USER : postgres
19+ POSTGRES_PASSWORD : postgres
20+ POSTGRES_DB : postgres
21+ networks :
22+ - app_network
23+ ports :
24+ - 5432:5432
25+ app :
26+ build :
27+ context : ../
28+ dockerfile : docker/Dockerfile
29+ ports :
30+ - 3000:3000
31+ depends_on :
32+ - db
33+ env_file : .env
34+ networks :
35+ - app_network
Original file line number Diff line number Diff line change 77
88npx --no-install prisma migrate deploy --schema /triggerdotdev/packages/database/prisma/schema.prisma
99npx --no-install ts-node --transpile-only /triggerdotdev/apps/webapp/prisma/seed.ts
10- cd /triggerdotdev/apps/webapp && npm run start
10+
11+ cd /triggerdotdev/apps/webapp
12+ exec pnpm run start
You can’t perform that action at this time.
0 commit comments