Add database schema and API endpoints for system wording keys and values Replace hardcoded translations in frontend and backend with dynamic messages Add System Wordings management interface to Admin view
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:18-alpine
|
|
environment:
|
|
POSTGRES_DB: pokopia
|
|
POSTGRES_USER: pokopia
|
|
POSTGRES_PASSWORD: pokopia
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres18_data:/var/lib/postgresql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U pokopia -d pokopia"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: backend/Dockerfile
|
|
environment:
|
|
DATABASE_URL: postgres://pokopia:pokopia@postgres:5432/pokopia
|
|
BACKEND_PORT: 3001
|
|
FRONTEND_ORIGIN: http://localhost:3000
|
|
APP_ORIGIN: http://localhost:3000
|
|
RESEND_API_KEY: ${RESEND_API_KEY:-}
|
|
EMAIL_FROM: "${EMAIL_FROM:-Pokopia Wiki <onboarding@resend.dev>}"
|
|
ports:
|
|
- "3001:3001"
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: frontend/Dockerfile
|
|
environment:
|
|
VITE_API_BASE_URL: http://localhost:3001
|
|
ports:
|
|
- "3000:3000"
|
|
depends_on:
|
|
- backend
|
|
|
|
volumes:
|
|
postgres18_data:
|