docker: configuring share memory

Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
Alexis Pentori 2024-08-20 13:57:09 +02:00
parent bf869e93a4
commit aa752f4062
No known key found for this signature in database
GPG Key ID: 65250D2801E47A10
3 changed files with 9 additions and 0 deletions

View File

@ -62,6 +62,11 @@ postgres_ha_alter_system_settings:
min_wal_size: '80MB'
```
Container share memory can be configured with:
```yaml
postgres_share_memory: '1g'
```
# Management
The service is managed using [Docker Compose](https://docs.docker.com/compose/):

View File

@ -15,6 +15,7 @@ postgres_ha_host_uid: '{{ 100000 + postgres_ha_cont_uid | int }}'
postgres_ha_cont_run_size: '512K'
postgres_ha_cont_tmp_size: '256K'
#postgres_share_memory: '64m'
# Alter System
postgres_ha_alter_system_settings: {}
# max_wal_size: '1GB'

View File

@ -5,6 +5,9 @@ services:
container_name: '{{ postgres_ha_cont_name }}'
image: '{{ postgres_ha_cont_image }}'
restart: always
{% if postgres_share_memory is defined %}
shm_size: '{{ postgres_share_memory }}'
{% endif %}
environment:
POSTGRES_DB: '{{ postgres_ha_db_name | mandatory }}'
POSTGRES_USER: '{{ postgres_ha_admin_user }}'