services:
  kafka-connect-jdbc-sink:
    platform: linux/amd64
    build:
      dockerfile: Dockerfile
      context: .
    ports:
      - "8083:8083"
    healthcheck:
        test: ["CMD-SHELL", "curl", "-f", "http://localhost:8083/connectors || exit 1" ]
        interval: 30s
        timeout: 5s
        retries: 5
    environment:
      Environment: 'local'
      CONNECT_GROUP_UNIQUE_IDENTIFIER: "${USER}-local"
    env_file:
      - .env
    volumes:
      - ${PWD}/.env:/etc/kafka-connect/connector_config.properties
      - ${HOME}/.aws:/home/appuser/.aws
