paper-dynasty-gameplay-webapp/docker-compose.yml
Cal Corum c09f9d1302 CLAUDE: Initialize Paper Dynasty web app with Model/Service Architecture
Establishes foundation for migrating baseball simulation from Discord bot to web application using service-oriented architecture pattern.

Key components:
- FastAPI application structure with dependency injection
- Service layer foundation with base classes and container
- Comprehensive directory documentation with README files
- PostgreSQL containerization with Docker Compose
- Testing structure for unit/integration/e2e tests
- Migration planning documentation
- Rotating log configuration per user requirements

Architecture follows Model/Service/Controller pattern to improve testability, maintainability, and scalability over original monolithic Discord app.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-27 21:44:12 -05:00

22 lines
589 B
YAML

services:
postgres:
image: postgres:15
container_name: pddev-postgres
environment:
POSTGRES_USER: paper_dynasty_user
POSTGRES_PASSWORD: paper_dynasty_dev_password
POSTGRES_DB: paper_dynasty
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U paper_dynasty_user -d paper_dynasty"]
interval: 30s
timeout: 10s
retries: 5
volumes:
postgres_data: