Merge pull request 'refs #3723 Set docker memory limit' (!29) from master into test
gitea/hedera-web/pipeline/head This commit looks good Details

Reviewed-on: #29
This commit is contained in:
Juan Ferrer 2023-03-06 08:31:52 +00:00
commit bbe7f2ea14
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ services:
placement: placement:
constraints: constraints:
- node.role == worker - node.role == worker
resources:
limits:
memory: 2G
cron: cron:
image: registry.verdnatura.es/hedera-web:${BRANCH_NAME:?} image: registry.verdnatura.es/hedera-web:${BRANCH_NAME:?}
command: 'cron -f' command: 'cron -f'
@ -35,6 +38,9 @@ services:
placement: placement:
constraints: constraints:
- node.role == worker - node.role == worker
resources:
limits:
memory: 1G
configs: configs:
config: config:
external: true external: true