File tree Expand file tree Collapse file tree 3 files changed +24
-19
lines changed
Expand file tree Collapse file tree 3 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ COPY --from=builder /app/dist ./dist
2323COPY --from=builder /app/public ./public
2424# COPY --from=builder /app/templates ./templates
2525
26+ COPY --from=builder /app/prisma ./prisma
2627
2728EXPOSE 4005
2829CMD [ "npm" , "run" , "start:prod" ]
Original file line number Diff line number Diff line change 1- # NestJS Prisma
1+ # NestJS Auth Service
2+
3+ ## Description
4+
5+ This is a simple auth service built with NestJS and Prisma. It uses JWT for authentication and authorization.
Original file line number Diff line number Diff line change @@ -22,24 +22,24 @@ services:
2222 - 6379:6379
2323 volumes :
2424 - redis-data:/data
25- # api:
26- # image: ghcr.io/pnstack/template-nest-prisma :release
27- # depends_on:
28- # - postgres
29- # - redis
30- # restart: on-failure
31- # ports:
32- # - 4005:4005
33- # volumes:
34- # - /app/node_modules
35- # - .: /app
36- # env_file:
37- # - .env
38- # environment:
39- # - REDIS_HOST=redis
40- # - DB_HOST=postgres
41- # - DATABASE_URL=postgresql://prisma:topsecret@ postgres:5432/postgres?schema=public&sslmode=prefer
42- # command: npm run dev
25+ api :
26+ image : ghcr.io/pnstack/nestjs-auth-service :release
27+ container_name : nestjs-auth-service
28+ depends_on :
29+ - postgres
30+ - redis
31+ restart : on-failure
32+ ports :
33+ - 4005:4005
34+ # volumes:
35+ # - /app/node_modules
36+ # - .:/app
37+ env_file :
38+ - .env
39+ environment :
40+ - REDIS_HOST=redis
41+ - DB_HOST= postgres
42+ - DATABASE_URL=postgresql://prisma:pd8cDXMA@postgres:5432/postgres?schema=public&sslmode=prefer
4343volumes :
4444 redis-data :
4545 postgres-data :
You can’t perform that action at this time.
0 commit comments