services:
  postgres:
    image: postgres:17-alpine
    container_name: alya-paros-postgres
    environment:
      POSTGRES_DB: alya_paros
      POSTGRES_USER: alya
      POSTGRES_PASSWORD: alya_dev_password
    ports:
      - "5432:5432"
    volumes:
      - postgres_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U alya -d alya_paros"]
      interval: 10s
      timeout: 5s
      retries: 5

  mailpit:
    image: axllent/mailpit:v1.27
    container_name: alya-paros-mailpit
    ports:
      - "1025:1025"
      - "8025:8025"

volumes:
  postgres_data:
