From 38fd652f8956e47f63f48b6a1f52252442011dd3 Mon Sep 17 00:00:00 2001 From: mjeffin <44426886+mjeffin@users.noreply.github.com> Date: Thu, 10 Sep 2020 13:53:52 +0530 Subject: [PATCH] Update docker-compose.yml.j2 Add quotes around volume value for posgres data. I installed via docker without changing any values and the UI was stuck in upgrading for long time. Browsed around and figured out that issue was due to postgres volume as a query was getting error. Inspected the template and found that there was no quotes around volume, unlike volumes for others. I added the quotes and docker compose was working --- installer/roles/local_docker/templates/docker-compose.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/roles/local_docker/templates/docker-compose.yml.j2 b/installer/roles/local_docker/templates/docker-compose.yml.j2 index 29677669b1..cdc6713480 100644 --- a/installer/roles/local_docker/templates/docker-compose.yml.j2 +++ b/installer/roles/local_docker/templates/docker-compose.yml.j2 @@ -167,7 +167,7 @@ services: container_name: awx_postgres restart: unless-stopped volumes: - - {{ postgres_data_dir }}/10/data/:/var/lib/postgresql/data:Z + - "{{ postgres_data_dir }}/10/data/:/var/lib/postgresql/data:Z" environment: POSTGRES_USER: {{ pg_username }} POSTGRES_PASSWORD: {{ pg_password }}