Skip to content

Commit

Permalink
Allow changing the APM server port via .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
BendingBender committed Nov 29, 2024
1 parent fd7f419 commit b9a43d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apm-server/config/apm-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

apm-server:
# Defines the host and port the server is listening on. Use "unix:/path/to.sock" to listen on a unix domain socket.
host: "0.0.0.0:8200"
host: "0.0.0.0:${APMSERVER_PORT}"


#---------------------------- APM Server - Secure Communication with Agents ----------------------------
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,16 @@ services:
args:
ELK_VERSION: $ELK_VERSION
restart: unless-stopped
ports:
- "8200:8200"
volumes:
- ./apm-server/config/apm-server.yml:/usr/share/apm-server/apm-server.yml:ro
environment:
ELASTIC_USERNAME: ${ELASTIC_USERNAME}
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
ELASTICSEARCH_HOST_PORT: https://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}
ELASTIC_APM_SECRET_TOKEN: ${ELASTIC_APM_SECRET_TOKEN}
APMSERVER_PORT: ${APMSERVER_PORT}
ports:
- "${APMSERVER_PORT}:${APMSERVER_PORT}"
secrets:
- source: elastic.ca
target: /certs/ca.crt
Expand Down

0 comments on commit b9a43d0

Please sign in to comment.