From 403f5450713f59df5caf0a9ea645f804fe4c5f13 Mon Sep 17 00:00:00 2001 From: Martin Slemr Date: Thu, 4 Jan 2024 15:10:55 +0100 Subject: [PATCH] Fix port conflicts when running other Ansible dev environments (#14701) AAP: Docker port conflicts --- .../ansible/roles/sources/templates/docker-compose.yml.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/docker-compose/ansible/roles/sources/templates/docker-compose.yml.j2 b/tools/docker-compose/ansible/roles/sources/templates/docker-compose.yml.j2 index 1ffb052f8aa7..83dd2f178a0b 100644 --- a/tools/docker-compose/ansible/roles/sources/templates/docker-compose.yml.j2 +++ b/tools/docker-compose/ansible/roles/sources/templates/docker-compose.yml.j2 @@ -61,7 +61,7 @@ services: {% if control_plane_node_count|int == 1 %} - "6899:6899" - "8080:8080" # unused but mapped for debugging - - "8888:8888" # jupyter notebook + - "${AWX_JUPYTER_PORT:-8888}:8888" # jupyter notebook - "8013:8013" # http - "8043:8043" # https - "2222:2222" # receptor foo node @@ -201,6 +201,8 @@ services: POSTGRES_PASSWORD: {{ pg_password }} volumes: - "awx_db:/var/lib/postgresql/data" + ports: + - "${AWX_PG_PORT:-5432}:5432" {% if enable_pgbouncer|bool %} pgbouncer: image: bitnami/pgbouncer:latest