From f74b18ab51db96bd02000197a3820096543a281c Mon Sep 17 00:00:00 2001 From: saikumar-vs <112166980+saikumar-vs@users.noreply.github.com> Date: Wed, 17 Jul 2024 22:47:44 +0530 Subject: [PATCH] PMM3 psmdb agent ports fix (#72) * Updates for PSMDB SSL setup port fix --- pmm_psmdb_diffauth_setup/docker-compose-pmm-psmdb.yml | 4 +++- pmm_psmdb_diffauth_setup/test-auth.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pmm_psmdb_diffauth_setup/docker-compose-pmm-psmdb.yml b/pmm_psmdb_diffauth_setup/docker-compose-pmm-psmdb.yml index 3b8d7f1..aad57ae 100644 --- a/pmm_psmdb_diffauth_setup/docker-compose-pmm-psmdb.yml +++ b/pmm_psmdb_diffauth_setup/docker-compose-pmm-psmdb.yml @@ -35,6 +35,8 @@ services: - PMM_AGENT_SERVER_USERNAME=admin - PMM_AGENT_SERVER_PASSWORD=admin - PMM_AGENT_SERVER_ADDRESS=pmm-server:8443 + - PMM_AGENT_PORTS_MIN=43000 + - PMM_AGENT_PORTS_MAX=43020 entrypoint: - bash - -c @@ -48,7 +50,7 @@ services: - 'psmdb-server-data:/data/db' privileged: true ports: - - "42000-42020:42000-42020" + - "43000-43020:43000-43020" healthcheck: test: | test $$(mongo --quiet --eval "try { rs.initiate().ok } catch (_) {} rs.status().ok") -eq 1 diff --git a/pmm_psmdb_diffauth_setup/test-auth.sh b/pmm_psmdb_diffauth_setup/test-auth.sh index a8933a5..a758ef9 100755 --- a/pmm_psmdb_diffauth_setup/test-auth.sh +++ b/pmm_psmdb_diffauth_setup/test-auth.sh @@ -37,6 +37,7 @@ cat pki/private/pmm-test.key pki/issued/pmm-test.crt > certs/client.pem find certs -type f -exec chmod 644 {} \; #Start setup +docker-compose -f docker-compose-pmm-psmdb.yml down -v --remove-orphans docker-compose -f docker-compose-pmm-psmdb.yml build docker-compose -f docker-compose-pmm-psmdb.yml up -d