Create a .env
and follow the steps below to add the necessary values:
- while your deployment is being setup copy the
username
andpassword
provided:
ELASTICSEARCH_USER= ELASTICSEARCH_PASSWORD=
- from
https://cloud.elastic.co/deployments
click on a deployment and onCopy endpoint
to fill the following values:
ELASTICSEARCH_URL= KIBANA_URL= ELASTIC_APM_SERVER_ENDPOINT= ELASTIC_APM_SERVER_RUM_ENDPOINT= // same as APM_SERVER_ENDPOINT
NOTE copying the endpoint will not add the necessary port (443) to the end of the URL, make sure to add it (see example .env below)
- from
https://YOUR_DEPLOYMENT.elastic-cloud.com/app/management/security/api_keys/
click onCreate API Key
:
ELASTICSEARCH_APIKEY=
- from
https://YOUR_DEPLOYMENT.elastic-cloud.com/app/home#/tutorial/apm
copy theOTEL_EXPORTER_OTLP_HEADERS
value:
ELASTIC_APM_SERVER_SECRET=
- other values:
ELASTIC_APM_SERVER_RUM_CREDENTIALS=false BACKLOAD_DATA=false DELETE_DATA=false
ELASTICSEARCH_USER=elastic ELASTICSEARCH_PASSWORD=abcde12345!
ELASTICSEARCH_URL=https://YOUR_DEPLOYMENT.es.us-east-2.aws.elastic-cloud.com KIBANA_URL=https://YOUR_DEPLOYMENT.kb.us-east-2.aws.elastic-cloud.com ELASTIC_APM_SERVER_ENDPOINT=https://YOUR_DEPLOYMENT.apm.us-east-2.aws.elastic-cloud.com:443 ELASTIC_APM_SERVER_RUM_ENDPOINT=https://YOUR_DEPLOYMENT.apm.us-east-2.aws.elastic-cloud.com:443
ELASTICSEARCH_APIKEY=AIOHSJoijaODHASUDHASIDuasdasiIAOI== ELASTIC_APM_SERVER_SECRET=AOSPDAPSIODAOospaos
ELASTIC_APM_SERVER_RUM_CREDENTIALS=false BACKLOAD_DATA=false DELETE_DATA=false
export $(cat .env | xargs)
docker compose build
docker compose up