Skip to content

Commit 7aad447

Browse files
committed
Merge branch 'master' into release
2 parents 81dc7c6 + c1e2036 commit 7aad447

File tree

3 files changed

+24
-19
lines changed

3 files changed

+24
-19
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ COPY --from=builder /app/dist ./dist
2323
COPY --from=builder /app/public ./public
2424
# COPY --from=builder /app/templates ./templates
2525

26+
COPY --from=builder /app/prisma ./prisma
2627

2728
EXPOSE 4005
2829
CMD [ "npm", "run", "start:prod" ]

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
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.

docker-compose.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff 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
4343
volumes:
4444
redis-data:
4545
postgres-data:

0 commit comments

Comments
 (0)