Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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=""
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ pnpm-debug.log*
next-env.d.ts

postgres-data
redis-data
!.env.example
2 changes: 1 addition & 1 deletion dev/dev-startup.sh
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
18 changes: 13 additions & 5 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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