mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-01-04 06:53:08 +00:00
Make servicenode and postgres resources configurable
This commit is contained in:
parent
5dde63c3b9
commit
aef3cfb4bf
@ -118,9 +118,8 @@ services:
|
|||||||
servicenode:
|
servicenode:
|
||||||
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
|
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
|
||||||
# container_name: servicenode
|
# container_name: servicenode
|
||||||
cpu_count: 1
|
cpuset: ${SERVICENODE_CPU_CORES:-"4"}
|
||||||
cpuset: "4"
|
mem_limit: ${SERVICENODE_MEM_LIMIT:-512m}
|
||||||
mem_limit: 512m
|
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
labels:
|
labels:
|
||||||
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-true}'
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-true}'
|
||||||
@ -326,9 +325,8 @@ services:
|
|||||||
# This service is used when the Waku node has the 'store' protocol enabled
|
# This service is used when the Waku node has the 'store' protocol enabled
|
||||||
# and the store-message-db-url is set to use Postgres
|
# and the store-message-db-url is set to use Postgres
|
||||||
image: postgres:15.4-alpine3.18
|
image: postgres:15.4-alpine3.18
|
||||||
cpu_count: 1
|
cpuset: ${POSTGRES_CPU_CORES:-"4"}
|
||||||
cpuset: "4"
|
mem_limit: ${POSTGRES_MEM_LIMIT:-2g}
|
||||||
mem_limit: 2g
|
|
||||||
restart: on-failure:5
|
restart: on-failure:5
|
||||||
shm_size: "${POSTGRES_SHM:-1g}" # Set default shared memory size to 1 GB
|
shm_size: "${POSTGRES_SHM:-1g}" # Set default shared memory size to 1 GB
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user