--- postgres_ha_service_name: 'postgres-ha' postgres_ha_service_path: '/docker/{{ postgres_ha_service_name }}' postgres_ha_compose_file: '{{ postgres_ha_service_path }}/docker-compose.yml' postgres_ha_cont_name: '{{ postgres_ha_service_name }}' postgres_ha_cont_data_vol: '{{ postgres_ha_service_path }}/data' postgres_ha_cont_init_vol: '{{ postgres_ha_service_path }}/init' postgres_ha_cont_backup_vol: '{{ postgres_ha_service_path }}/backup' postgres_ha_cont_image: 'postgres:15.1-alpine' postgres_ha_cont_port: 5432 postgres_ha_cont_uid: 70 postgres_ha_host_uid: '{{ 100000 + postgres_ha_cont_uid | int }}' postgres_ha_cont_run_size: '512K' postgres_ha_cont_tmp_size: '256K' # Alter System postgres_alter_system_settings: {} # max_wal_size: '1GB' # Admin Auth postgres_ha_admin_user: 'postgres' postgres_ha_admin_pass: 'changeMeIfYouCare' # Replication Auth postgres_ha_replica_enabled: true postgres_ha_replica_user: 'replicator' postgres_ha_replica_pass: 'changeMeIfYouCare' postgres_ha_replica_slot: 'main' #postgres_ha_replica_host: 'db-master.example.org' #postgres_ha_replica_port: 5432 #postgres_ha_replica_allowed_addresses: ['10.0.0.0/8'] # Mandatory Configuration #postgres_ha_is_master: true # Optional Configuration postgres_ha_db_name: 'postgres' # Additional Databases postgres_ha_databases: [] # - name: 'dbtest' # user: 'dbuser' # pass: 'dbpass' # Backups postgres_ha_backup: true postgres_ha_backup_enabled: true postgres_ha_backup_service_name: 'dump-{{ postgres_ha_service_name }}' postgres_ha_backup_frequency: daily postgres_ha_backup_timeout: 600 postgres_ha_backup_user: 'root' # Consul postgres_ha_consul_service: 'postgres' # general container management compose_recreate: 'auto' compose_state: 'present'