services:
  debezium-mysql-source:
    build:
      context: .
      dockerfile: Dockerfile
    hostname: debezium-mysql-source
    container_name: debezium-mysql-source
    ports:
      - 8083:8083
      - 9095:9095
    healthcheck:
        test: ["CMD-SHELL", "curl", "-f", "http://localhost:8083/connectors || exit 1" ]
        interval: 10s
        timeout: 30s
        retries: 15
    env_file:
      - .env
    volumes:
      - ${PWD}/.env:/etc/kafka-connect/connector_config.properties

