Files
mockupAWS/docker-compose.yml
Luca Sacchi Ricciardi 311a576f40 docs: update documentation and add Docker configuration for v0.3.0
- Update README.md with v0.3.0 completion status and improved setup instructions
- Update export/progress.md with completed tasks (53/55, 96% progress)
- Update export/architecture.md with current project structure and implementation status
- Add docker-compose.yml with PostgreSQL service
- Add Dockerfile.backend for production builds
- Add frontend/Dockerfile for multi-stage builds
- Update .gitignore with comprehensive rules for Python, Node.js, and Docker

Project status:
- v0.2.0: Database and Backend API 
- v0.3.0: Frontend React implementation 
- v0.4.0: Reports and visualization (planned)
2026-04-07 15:17:15 +02:00

71 lines
1.6 KiB
YAML

version: '3.8'
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: mockupaws-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mockupaws
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- mockupaws-network
# Backend API (Opzionale - per produzione)
# Per sviluppo, usa: uv run uvicorn src.main:app --reload
# backend:
# build:
# context: .
# dockerfile: Dockerfile.backend
# container_name: mockupaws-backend
# restart: unless-stopped
# environment:
# DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/mockupaws
# API_V1_STR: /api/v1
# PROJECT_NAME: mockupAWS
# ports:
# - "8000:8000"
# depends_on:
# postgres:
# condition: service_healthy
# volumes:
# - ./src:/app/src
# networks:
# - mockupaws-network
# Frontend React (Opzionale - per produzione)
# Per sviluppo, usa: cd frontend && npm run dev
# frontend:
# build:
# context: ./frontend
# dockerfile: Dockerfile.frontend
# container_name: mockupaws-frontend
# restart: unless-stopped
# environment:
# VITE_API_URL: http://localhost:8000
# ports:
# - "3000:80"
# depends_on:
# - backend
# networks:
# - mockupaws-network
volumes:
postgres_data:
driver: local
networks:
mockupaws-network:
driver: bridge