лаба на 5
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
|
||||
services:
|
||||
api-1:
|
||||
cpus: ${API_CPUS:-1.0}
|
||||
mem_limit: ${API_MEMORY:-512m}
|
||||
|
||||
api-2:
|
||||
cpus: ${API_CPUS:-1.0}
|
||||
mem_limit: ${API_MEMORY:-512m}
|
||||
|
||||
api-3:
|
||||
extends:
|
||||
service: api-1
|
||||
file: compose.yaml
|
||||
environment:
|
||||
INSTANCE_ID: api-3
|
||||
cpus: ${API_CPUS:-1.0}
|
||||
mem_limit: ${API_MEMORY:-512m}
|
||||
|
||||
api-4:
|
||||
extends:
|
||||
service: api-1
|
||||
file: compose.yaml
|
||||
environment:
|
||||
INSTANCE_ID: api-4
|
||||
cpus: ${API_CPUS:-1.0}
|
||||
mem_limit: ${API_MEMORY:-512m}
|
||||
|
||||
nginx:
|
||||
volumes:
|
||||
- ./infra/scale/nginx-${API_REPLICAS:-2}.conf:/etc/nginx/nginx.conf:ro
|
||||
depends_on: !override
|
||||
api-1:
|
||||
condition: service_healthy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user