@ -9,11 +9,19 @@ matrix_postgres_db_name: "matrix"
matrix_postgres_base_path : "{{ matrix_base_data_path }}/postgres"
matrix_postgres_base_path : "{{ matrix_base_data_path }}/postgres"
matrix_postgres_data_path : "{{ matrix_postgres_base_path }}/data"
matrix_postgres_data_path : "{{ matrix_postgres_base_path }}/data"
matrix_postgres_docker_image_v9 : "docker.io/postgres:9.6.20-alpine"
matrix_postgres_architecture : amd64
matrix_postgres_docker_image_v10 : "docker.io/postgres:10.15-alpine"
matrix_postgres_docker_image_v11 : "docker.io/postgres:11.10-alpine"
# matrix_postgres_docker_image_suffix controls whether we use Alpine-based images (`-alpine`) or the normal Debian-based images.
matrix_postgres_docker_image_v12 : "docker.io/postgres:12.5-alpine"
# Alpine-based Postgres images are smaller and we usually prefer them, but they don't work on ARM32 (tested on a Raspberry Pi 3 running Raspbian 10.7).
matrix_postgres_docker_image_v13 : "docker.io/postgres:13.1-alpine"
# On ARM32, `-alpine` images fail with the following error:
# > LOG: startup process (PID 37) was terminated by signal 11: Segmentation fault
matrix_postgres_docker_image_suffix : "{{ '-alpine' if matrix_postgres_architecture in ['amd64', 'arm64'] else '' }}"
matrix_postgres_docker_image_v9 : "docker.io/postgres:9.6.20{{ matrix_postgres_docker_image_suffix }}"
matrix_postgres_docker_image_v10 : "docker.io/postgres:10.15{{ matrix_postgres_docker_image_suffix }}"
matrix_postgres_docker_image_v11 : "docker.io/postgres:11.10{{ matrix_postgres_docker_image_suffix }}"
matrix_postgres_docker_image_v12 : "docker.io/postgres:12.5{{ matrix_postgres_docker_image_suffix }}"
matrix_postgres_docker_image_v13 : "docker.io/postgres:13.1{{ matrix_postgres_docker_image_suffix }}"
matrix_postgres_docker_image_latest : "{{ matrix_postgres_docker_image_v13 }}"
matrix_postgres_docker_image_latest : "{{ matrix_postgres_docker_image_v13 }}"
# This variable is assigned at runtime. Overriding its value has no effect.
# This variable is assigned at runtime. Overriding its value has no effect.