Skip to content

Commit

Permalink
introduce resource limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Jan 11, 2025
1 parent af8fdf4 commit 8e53b20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/compose.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ services:
condition: on-failure
delay: 5s
max_attempts: 3
resources:
limits:
cpus: '0.20'
memory: 200M
environment:
PRIVATE_KEY: ${BACKEND_PRIVATE_KEY}
S3_ENDPOINT: ${BACKEND_S3_ENDPOINT}
Expand Down
4 changes: 4 additions & 0 deletions frontend/compose.frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ services:
condition: on-failure
delay: 5s
max_attempts: 3
resources:
limits:
cpus: '0.20'
memory: 200M
environment:
INTERNAL_BACKEND_BASE_URL: ${INTERNAL_BACKEND_BASE_URL}
NEXT_PUBLIC_FILES_PROTOCOL: ${NEXT_PUBLIC_FILES_PROTOCOL}
Expand Down

0 comments on commit 8e53b20

Please sign in to comment.