add limits override compose file

This commit is contained in:
perl 2024-10-04 00:48:20 +03:00
parent 7e1823dca6
commit 02149a10da
3 changed files with 15 additions and 7 deletions

View File

@ -0,0 +1,5 @@
networks:
services:
external: true
driver: bridge
name: services

View File

@ -0,0 +1,5 @@
services:
reverse:
cpu_count: 2
mem_limit: 256m
mem_reservation: 256m

View File

@ -1,3 +1,7 @@
include:
- path:
- compose_extends/network.include.yaml
services: services:
reverse: reverse:
extends: extends:
@ -19,9 +23,3 @@ services:
- 443:443 - 443:443
networks: networks:
- services - services
networks:
services:
external: true
driver: bridge
name: services