Skip to content

Commit

Permalink
Merge pull request #118 from BendingBender/fix-apm-server-port-var
Browse files Browse the repository at this point in the history
Allow changing the APM server port via .env file
  • Loading branch information
sherifabdlnaby authored Jan 4, 2025
2 parents 0d5e46d + b9a43d0 commit eff839e
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 eff839e

Please sign in to comment.