- Adjusted formatting in .prettierrc for consistent newline handling. - Enhanced API documentation in BACKEND_PROMPT.md for better readability and structure. - Updated docker-compose.yml to standardize quotes and improve health check commands. - Refactored ESLint configuration for better readability and consistency. - Made minor formatting adjustments in various frontend components for improved user experience and code clarity.
66 lines
1.5 KiB
YAML
66 lines
1.5 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# Development database
|
|
db-dev:
|
|
image: postgres:16-alpine
|
|
container_name: wealth-db-dev
|
|
environment:
|
|
POSTGRES_USER: wealth
|
|
POSTGRES_PASSWORD: wealth_dev
|
|
POSTGRES_DB: wealth_dev
|
|
ports:
|
|
- '5432:5432'
|
|
volumes:
|
|
- postgres_dev_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U wealth -d wealth_dev']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
# Staging database
|
|
db-staging:
|
|
image: postgres:16-alpine
|
|
container_name: wealth-db-staging
|
|
environment:
|
|
POSTGRES_USER: wealth
|
|
POSTGRES_PASSWORD: ${STAGING_DB_PASSWORD:-wealth_staging}
|
|
POSTGRES_DB: wealth_staging
|
|
ports:
|
|
- '5433:5432'
|
|
volumes:
|
|
- postgres_staging_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U wealth -d wealth_staging']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
# Production database
|
|
db-prod:
|
|
image: postgres:16-alpine
|
|
container_name: wealth-db-prod
|
|
environment:
|
|
POSTGRES_USER: wealth
|
|
POSTGRES_PASSWORD: ${PROD_DB_PASSWORD:?PROD_DB_PASSWORD is required}
|
|
POSTGRES_DB: wealth_prod
|
|
ports:
|
|
- '5434:5432'
|
|
volumes:
|
|
- postgres_prod_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U wealth -d wealth_prod']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 1G
|
|
|
|
volumes:
|
|
postgres_dev_data:
|
|
postgres_staging_data:
|
|
postgres_prod_data:
|