fix(infra): lab3 add limits and resources (fix problem)
This commit is contained in:
+10
-1
@@ -80,6 +80,11 @@ services:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
disable: true
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.5"
|
||||
memory: 128M
|
||||
networks:
|
||||
- internal
|
||||
|
||||
@@ -134,9 +139,13 @@ services:
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_started
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.5"
|
||||
memory: 128M
|
||||
networks:
|
||||
- internal
|
||||
|
||||
secrets:
|
||||
postgres_password:
|
||||
file: ./secrets/postgres_password
|
||||
|
||||
Reference in New Issue
Block a user