Websoft9 / docker-library

Docker Compose examples of selfhosted FOSS based on official image, just run it.
https://www.websoft9.com
Other
31 stars 14 forks source link

cpu and memory limit at docker-compose #572

Open chendelin1982 opened 5 months ago

chendelin1982 commented 5 months ago

What type of your feature request?

qiaofeng1227 commented 5 months ago

https://docs.docker.com/compose/compose-file/

qiaofeng1227 commented 5 months ago

memory limit has not parcent parameter

qiaofeng1227 commented 4 months ago
services:
  testservice:
    image: $W9_REPO:$W9_VERSION
    container_name: $W9_ID
    restart: unless-stopped
    cpu_percent: 60
    mem_limit: 8g