services:
  db:
    image: postgres:15-alpine
    container_name: print-calculator-db
    environment:
      - POSTGRES_USER=printcalc
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_DB=printcalc
    ports:
      - "5432:5432"
    volumes:
      - postgres_data:/var/lib/postgresql/data
    restart: unless-stopped

  clamav:
    platform: linux/amd64
    image: clamav/clamav:latest
    container_name: print-calculator-clamav
    ports:
      - "3310:3310"
    volumes:
      - clamav_db:/var/lib/clamav
    restart: unless-stopped

volumes:
  postgres_data:
  clamav_db:
