Skip to content

Commit

Permalink
feat: Add Prisma Studio Docker configuration (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekyharsh05 authored Sep 16, 2024
1 parent d10d614 commit 1eb9a62
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ DATABASE_URL="postgres://postgres:password@localhost:5432/postgres"
NEXTAUTH_SECRET="koXrQGB5TFD4KALDX4kAvnQ5RHHvAOIzB"
NEXTAUTH_URL="http://localhost:3000"

# PRISMA STUDIO DOCKER
POSTGRES_URL=postgres://postgres:postgres@db:5432/job-board-db
POSTGRES_HOST=db
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=postgres

AWS_S3_REGION=your-aws-region
AWS_S3_ACCESS_KEY_ID=your-access-ID
AWS_S3_SECRET_ACCESS_KEY=your-access-key
AWS_S3_BUCKET_NAME=your-bucket
#
# Bunny CDN
#
Expand All @@ -19,3 +29,4 @@ CDN_BASE_ACCESS_URL=https://job-board.b-cdn.net/assets

NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=


11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,16 @@ services:
timeout: 5s
retries: 5

prisma-studio:
container_name: prisma-studio
image: timothyjmiller/prisma-studio:latest
restart: unless-stopped
env_file:
- .env
depends_on:
- app
ports:
- 5555:5555

volumes:
postgres-data:

0 comments on commit 1eb9a62

Please sign in to comment.