From 1eb9a622196363456f282c3380af94472cb04fbd Mon Sep 17 00:00:00 2001 From: Harsh Vardhan Pandey Date: Mon, 16 Sep 2024 22:39:42 +0530 Subject: [PATCH] feat: Add Prisma Studio Docker configuration (#287) --- .env.example | 11 +++++++++++ docker-compose.yaml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/.env.example b/.env.example index f8f03c54..1e526d56 100644 --- a/.env.example +++ b/.env.example @@ -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 # @@ -19,3 +29,4 @@ CDN_BASE_ACCESS_URL=https://job-board.b-cdn.net/assets NEXT_PUBLIC_GOOGLE_MAPS_API_KEY= + diff --git a/docker-compose.yaml b/docker-compose.yaml index dc8dec34..1b8a171c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: