docker: configuring share memory
Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
parent
bf869e93a4
commit
aa752f4062
|
@ -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/):
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in New Issue