Skip to content

Instantly share code, notes, and snippets.

@nyx-rattapoom
Created January 7, 2023 17:05
Show Gist options
  • Save nyx-rattapoom/f2fca49b5563043b5e4ec0554aeccfb8 to your computer and use it in GitHub Desktop.
Save nyx-rattapoom/f2fca49b5563043b5e4ec0554aeccfb8 to your computer and use it in GitHub Desktop.
docker resource limit
version: '3'
services:
service_name:
image: repo/image_tag
deploy:
cpus: 0.5
mem_limit: 2g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment