version: '3.8' services: # Base de datos PostgreSQL postgres: image: postgres:16-alpine container_name: app-padel-postgres restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: app_padel ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 # Redis (para caché y sesiones - opcional por ahora) redis: image: redis:7-alpine container_name: app-padel-redis restart: unless-stopped ports: - "6379:6379" volumes: - redis_data:/data # Servidor de correo para desarrollo mailhog: image: mailhog/mailhog:latest container_name: app-padel-mailhog restart: unless-stopped ports: - "1025:1025" # SMTP - "8025:8025" # Web UI volumes: postgres_data: redis_data: