- Backend: Express + TypeORM + PostgreSQL, JWT + OTP auth - Frontend: React + Vite + Tailwind, 4 pages (Home/Login/Orders/404) - Docker Compose: PostgreSQL 15 on port 5434 - Tests: 16 tests passing (API + Frontend) - ai_state: rules.md, INSTRUCTIONS.md, session tasks - Examples: brand book PDF, logos, page mockups
35 lines
728 B
YAML
35 lines
728 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
container_name: nutshell_postgres
|
|
environment:
|
|
POSTGRES_USER: nutshell
|
|
POSTGRES_PASSWORD: nutshell_dev_password
|
|
POSTGRES_DB: nutshell_db
|
|
ports:
|
|
- "5434:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U nutshell"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
file_storage:
|
|
image: nginx:alpine
|
|
container_name: nutshell_file_storage
|
|
volumes:
|
|
- file_uploads:/data/uploads
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
ports:
|
|
- "8080:80"
|
|
depends_on:
|
|
- postgres
|
|
|
|
volumes:
|
|
postgres_data:
|
|
file_uploads:
|