Reindex from remote source doesn't work with either API key or user/PW?

you said you wanted to see the docker-compose spec too:

es01:
depends_on:
setup:
condition: service_healthy
image: ``docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION}
volumes:
- certs:/usr/share/elasticsearch/config/certs
- es01_data:/usr/share/elasticsearch/data
- es01_snapshots:/usr/share/elasticsearch/snapshots
- ${ES_CUSTOM_CONFIG_PATH}:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- ${CONTAINER_ES_PORT}:9200
environment:
- node.name=es01
- cluster.name=${ES_CLUSTER_NAME}
- discovery.type=single-node
- ELASTIC_PASSWORD=${ES_PASSWORD}
- path.repo=/usr/share/elasticsearch/snapshots
- bootstrap.memory_lock=true
- xpack.security.enabled=true
- xpack.security.http.ssl.enabled=true
- xpack.security.http.ssl.key=certs/es01/es01.key
- xpack.security.http.ssl.certificate=certs/es01/es01.crt
- xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
- xpack.security.transport.ssl.enabled=true
- xpack.security.transport.ssl.key=certs/es01/es01.key
- xpack.security.transport.ssl.certificate=certs/es01/es01.crt
- xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
- xpack.security.transport.ssl.verification_mode=certificate
- xpack.license.self_generated.type=${ES_LICENSE}
- xpack.ml.use_auto_machine_memory_percent=true
mem_limit: ${ES_MEM_LIMIT}
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test:
[
"CMD-SHELL",
"curl -s --cacert config/certs/ca/ca.crt ``https://localhost:9200`` | grep -q 'missing authentication credentials'",
]
interval: 10s
timeout: 10s
retries: 120