mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Upgrade to postgres:15 (#14230)
* Upgrade to postgres:15 * Changed postgres:15 to quay.io/sclorg/postgresql-15-c9s
This commit is contained in:
@@ -207,17 +207,16 @@ services:
|
||||
# context: ../../docker-compose
|
||||
# dockerfile: Dockerfile-logstash
|
||||
postgres:
|
||||
image: postgres:12
|
||||
image: quay.io/sclorg/postgresql-15-c9s
|
||||
container_name: tools_postgres_1
|
||||
# additional logging settings for postgres can be found https://www.postgresql.org/docs/current/runtime-config-logging.html
|
||||
command: postgres -c log_destination=stderr -c log_min_messages=info -c log_min_duration_statement={{ pg_log_min_duration_statement|default(1000) }} -c max_connections={{ pg_max_connections|default(1024) }}
|
||||
command: run-postgresql -c log_destination=stderr -c log_min_messages=info -c log_min_duration_statement={{ pg_log_min_duration_statement|default(1000) }} -c max_connections={{ pg_max_connections|default(1024) }}
|
||||
environment:
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
POSTGRES_USER: {{ pg_username }}
|
||||
POSTGRES_DB: {{ pg_database }}
|
||||
POSTGRES_PASSWORD: {{ pg_password }}
|
||||
POSTGRESQL_USER: {{ pg_username }}
|
||||
POSTGRESQL_DATABASE: {{ pg_database }}
|
||||
POSTGRESQL_PASSWORD: {{ pg_password }}
|
||||
volumes:
|
||||
- "awx_db:/var/lib/postgresql/data"
|
||||
- "awx_db_15:/var/lib/pgsql/data"
|
||||
networks:
|
||||
- awx
|
||||
ports:
|
||||
@@ -305,8 +304,9 @@ services:
|
||||
{% endif %}
|
||||
|
||||
volumes:
|
||||
awx_db:
|
||||
name: tools_awx_db
|
||||
{# For the postgres 15 db upgrade we changed the mount name because 15 can't load a 12 DB #}
|
||||
awx_db_15:
|
||||
name: tools_awx_db_15
|
||||
{% for i in range(control_plane_node_count|int) -%}
|
||||
{% set container_postfix = loop.index %}
|
||||
redis_socket_{{ container_postfix }}:
|
||||
|
||||
Reference in New Issue
Block a user