Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.evn urls setup not explained #30

Open
nagkumar opened this issue May 17, 2024 · 2 comments
Open

.evn urls setup not explained #30

nagkumar opened this issue May 17, 2024 · 2 comments

Comments

@nagkumar
Copy link

ELASTIC_APM_SERVER_URL="https://foobar.apm.us-central1.gcp.cloud.es.io"
ELASTIC_APM_SECRET_TOKEN="secret123"

ELASTICSEARCH_USERNAME="elastic"
ELASTICSEARCH_PASSWORD="changeme"
ELASTICSEARCH_URL="https://foobar.es.us-central1.gcp.cloud.es.io"

It would be nice to add how to create these servers.. especially not show what is ELASTIC_APM_SERVER_URL, hence was saying dockerisation of launch of these servers would make example more easy to follow

@nagkumar
Copy link
Author

nagkumar commented May 17, 2024

I only see these 2 servers in docker hub..

image

while it https://www.elastic.co/guide/en/observability/current/apm-running-on-docker.html says image

@nagkumar
Copy link
Author

nagkumar commented May 17, 2024

    elasticsearch:
        image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
        networks:
            - app-network
        ports:
            - "9200:9200"
        environment:
            - "discovery.type=single-node"
            - node.name=es01
            - bootstrap.memory_lock=true
            - xpack.security.enabled=true
            - xpack.security.http.ssl.enabled=false
            - ELASTIC_USERNAME=elastic
            - ELASTIC_PASSWORD=changeme
        volumes:
            - ./elasticsearch/data:/usr/share/elasticsearch/data:rw
    apm-server:
        image: docker.elastic.co/apm/apm-server:8.13.0
        container_name: apm-server
        restart: unless-stopped
        networks:
            - app-network
        ports:
            - "8200:8200"
        environment:
            - bootstrap.memory_lock=true
            - discovery.type=single-node
            - ELASTICSEARCH_HOSTS=http://elasticsearch:9200
            - ELASTICSEARCH_USERNAME=elastic
            - ELASTICSEARCH_PASSWORD=changeme
        depends_on:
            - elasticsearch
    kibana:
        image: docker.elastic.co/kibana/kibana:${ELASTIC_VERSION}
        networks:
            - app-network
        ports:
            - "5601:5601"
        restart: on-failure
        depends_on:
            - elasticsearch
networks:
    app-network:
        driver: bridge

adding this did launch the required servers locally.. any other config required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant