Skip to content

Commit

Permalink
added limits
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Jun 26, 2024
1 parent a397dc4 commit 33b9849
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ services:
- "127.0.0.1:${EXPOSED_PORT:-8001}:8000"
entrypoint:
["python", "-m", "shvatka"]
deploy:
resources:
reservations:
memory: 250M
cpus: "0.008"
limits:
memory: 800M
cpus: "0.15"

shvatka-ui:
container_name: "shvatka_ui-${ENV_NAME}"
Expand All @@ -33,6 +41,13 @@ services:
- reverse-proxy
env_file:
- "config/ui.env"
deploy:
resources:
reservations:
memory: 5M
limits:
memory: 80M
cpus: "0.01"

migrations:
profiles:
Expand Down

0 comments on commit 33b9849

Please sign in to comment.