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

**URL:** <https://discuss.elastic.co/t/reindex-from-remote-source-doesnt-work-with-either-api-key-or-user-pw/391123>\
**Category:** Elastic Search\
**Created:** [October 22, 2026, 11:52pm UTC](https://discuss.elastic.co/t/reindex-from-remote-source-doesnt-work-with-either-api-key-or-user-pw/391123 "2026-10-22T23:52:16Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![rik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rik/32/147516_2.png) [@rik](https://discuss.elastic.co/u/rik)\
**Post date:** [October 24, 2026, 4:46pm UTC](https://discuss.elastic.co/t/reindex-from-remote-source-doesnt-work-with-either-api-key-or-user-pw/391123/8 "2026-10-24T16:46:21Z")

</div>

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`

---

_[View the full topic](https://discuss.elastic.co/t/reindex-from-remote-source-doesnt-work-with-either-api-key-or-user-pw/391123)._
