container: add memory limits to example compose file

This commit is contained in:
Gareth Coles 2024-03-17 02:29:41 +09:00 committed by naskya
parent 8a5a6dcc45
commit f7487997f1
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
1 changed files with 13 additions and 0 deletions

View File

@ -26,6 +26,10 @@ services:
interval: 5s
timeout: 5s
retries: 5
deploy:
resources:
limits:
memory: 4096M
redis:
restart: unless-stopped
@ -40,6 +44,11 @@ services:
interval: 5s
timeout: 5s
retries: 5
# deploy:
# resources:
# limits:
# memory: 200M
db:
restart: unless-stopped
@ -56,6 +65,10 @@ services:
interval: 5s
timeout: 5s
retries: 5
# deploy:
# resources:
# limits:
# memory: 200M
networks:
calcnet: