Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit 8aba62e

Browse files
authored
Merge pull request #153 from hanabitech/server-docker-fix
[HT-88]: Fixed server service not running successfully
2 parents 260fe05 + 3eb66d2 commit 8aba62e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public-hoist-pattern[]=*prisma*

apps/server/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ COPY --from=builder /app/out/full/ .
3939
COPY --from=builder /app/apps/server/run.sh ./apps/server/run.sh
4040

4141
RUN pnpx turbo run db:generate \
42-
& pnpx turbo run build
42+
& pnpx turbo run build
4343

44-
CMD node /app/apps/server/dist/main.js
44+
WORKDIR /app/apps/server
45+
46+
CMD pnpx prisma migrate deploy && node /app/apps/server/dist/main.js

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ services:
2121
- "3001:3001"
2222
volumes:
2323
- ./config.yaml:/app/config.yaml
24+
environment:
25+
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres
2426
postgres:
2527
image: postgres:latest
2628
networks:
@@ -43,5 +45,6 @@ services:
4345
volumes:
4446
postgres_data:
4547

48+
4649
networks:
4750
caw:

0 commit comments

Comments
 (0)