From 02cb7372c9a54f472d5719d9f0a4eda8cf1f5ce0 Mon Sep 17 00:00:00 2001 From: Aimen Sahnoun Date: Fri, 2 Jan 2026 13:36:55 +0400 Subject: [PATCH] chore: update dev scripts --- .env.example | 4 ++-- .gitignore | 1 + dev/dev-startup.sh | 2 +- dev/docker-compose.yml | 18 +++++++++++++----- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.env.example b/.env.example index cb4329f2..d6922b0c 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ ENCRYPTION_KEY="" # generate using `openssl rand -base64 32` -DATABASE_URL="postgresql://easy-invoice:easy-invoice@localhost:7406/easy-invoice" +DATABASE_URL="postgresql://request-commerce:request-commerce@localhost:54329/request-commerce" GOOGLE_CLIENT_ID="" GOOGLE_CLIENT_SECRET="" GOOGLE_REDIRECT_URI="http://localhost:3000/login/google/callback" @@ -12,7 +12,7 @@ NEXT_PUBLIC_API_TERMS_CONDITIONS="https://request.network/api-terms" FEE_PERCENTAGE_FOR_PAYMENT= FEE_ADDRESS_FOR_PAYMENT= -REDIS_URL=redis://localhost:7379 +REDIS_URL=redis://localhost:63791 # Optional # NEXT_PUBLIC_GTM_ID="" diff --git a/.gitignore b/.gitignore index f1f9fa3a..aac04291 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,5 @@ pnpm-debug.log* next-env.d.ts postgres-data +redis-data !.env.example diff --git a/dev/dev-startup.sh b/dev/dev-startup.sh index b1159a5e..e274baf8 100755 --- a/dev/dev-startup.sh +++ b/dev/dev-startup.sh @@ -1,7 +1,7 @@ #!/bin/bash # Define the Docker Compose project name -PROJECT_NAME="easy-invoice_dev" +PROJECT_NAME="request-commerce_dev" # Check if Docker Compose is already running for the project running_containers=$(docker compose -p $PROJECT_NAME ps -q) diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index aa2e8297..01f4cfb1 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -1,15 +1,23 @@ version: "3.3" services: - # postgresql://easy-invoice:easy-invoice@localhost:7406/easy-invoice + # postgresql://request-commerce:request-commerce@localhost:54329/request-commerce postgres: image: postgres:16-alpine environment: - POSTGRES_USER: easy-invoice - POSTGRES_PASSWORD: easy-invoice - POSTGRES_DB: easy-invoice + POSTGRES_USER: request-commerce + POSTGRES_PASSWORD: request-commerce + POSTGRES_DB: request-commerce POSTGRES_HOST: postgres ports: - - "7406:5432" + - "54329:5432" volumes: - ./postgres-data:/var/lib/postgresql/data + + # redis://localhost:63791 + redis: + image: redis:7-alpine + ports: + - "63791:6379" + volumes: + - ./redis-data:/data