Skip to content

Commit

Permalink
Update matching worker service dockerfile for production (#90)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update schema.prisma

* Update port mapping in matching-db schema
  • Loading branch information
Acerizm authored Nov 1, 2023
1 parent ecd9b5f commit fc4d34c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Server Configs/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ services:
image: "registry.gitlab.com/peerprepgroup51sem1y2023/docker/matching-worker-service:latest"
environment:
- AMQP_URL=amqp://rabbitmq:5672
- DATABASE_URL=postgresql://root:secret@matching-service-db:5432/matching_service?schema=public
- DATABASE_URL=postgresql://root:secret@matching-service-db:5435/matching_service?schema=public
depends_on:
- rabbitmq
- matching-service-db
Expand Down
1 change: 1 addition & 0 deletions services/matching-worker-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ COPY --from=build /app/tsconfig.json ./
COPY --from=build /app/package*.json ./
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/src ./src
COPY --from=build /app/prisma ./prisma

# Build the application
RUN npm run compile
Expand Down
2 changes: 1 addition & 1 deletion services/matching-worker-service/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ generator client {

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
url = "postgresql://root:[email protected]:5435/matching_service?schema=public"
}

model MatchRequest {
Expand Down

0 comments on commit fc4d34c

Please sign in to comment.