xoxys.postgres/defaults/main.yml

67 lines
2.0 KiB
YAML
Raw Normal View History

2018-10-14 21:17:40 +00:00
---
postgres_image: "docker.io/library/postgres:latest"
2024-08-13 07:32:28 +00:00
postgres_uid: 999
postgres_gid: 999
2018-10-16 18:53:36 +00:00
# @var postgres_volumes:description: > Define required docker volumes.
# @end
# @var postgres_volumes:example: >
# postgres_volumes:
# - name: data
# # target location inside the container
# dest: /var/lib/postgresql/data
# type: volume
# @end
postgres_volumes:
2024-08-13 07:32:28 +00:00
- name: "postgres-initdb"
dest: "/docker-entrypoint-initdb.d"
- name: "postgres-data"
dest: /var/lib/postgresql/data
# @var postgres_network:description: >
# Name of the container network. If the name ends with `.network`, the network will be created with the specified configuration.
# Otherwise, the network must already exist and the container will be attached to the network.
# @end
postgres_network: "postgres.network"
postgres_network_ipv6_enabled: False
# @var postgres_network_ipv6_subnet:value: $ "_unset_"
# @var postgres_network_ipv6_subnet:example: $ "fd00:0:0:2::/64"
# @var postgres_network_ipv6_gateway:value: $ "_unset_"
# @var postgres_network_ipv6_gateway:example: $ "fd00:0:0:2::1"
# @var postgres_network_ipv4_subnet:value: $ "_unset_"
# @var postgres_network_ipv4_gateway:value: $ "_unset_"
# @var postgres_exposed_ports:description: >
# Ports you want to publish outside of Docker. Postgres is running on `5432` inside of the container.
2019-10-18 11:18:43 +00:00
# @end
postgres_exposed_ports: []
2018-10-18 20:59:39 +00:00
postgres_cap_add: []
postgres_cap_drop: []
postgres_podman_args:
- --pids-limit=-1
- --health-cmd='["pg_isready", "-d", "{{ postgres_db }}"]'
- --health-interval=5s
- --health-timeout=5s
- --health-retries=6
- --health-on-failure=kill
- --workdir=/var/lib/postgresql/data
postgres_log_level: warning
postgres_user: postgres
postgres_password: postgres
postgres_db: postgres
postgres_host_auth_method: scram-sha-256
postgres_initdb_args:
- --auth-host=scram-sha-256
- --auth-local=scram-sha-256
2019-10-23 08:00:52 +00:00
postgres_tls_enabled: False
postgres_tls_ca_file: "/var/lib/postgresql/tls/CA.pem"
postgres_tls_cert_file: "/var/lib/postgresql/tls/cert.pem"
postgres_tls_key_file: "/var/lib/postgresql/tls/key.pem"