{"id":50484793,"url":"https://github.com/alexandreelise/caps","last_synced_at":"2026-06-01T21:02:14.705Z","repository":{"id":354281259,"uuid":"1222945028","full_name":"alexandreelise/caps","owner":"alexandreelise","description":"An example of restricted capabilities using cgroups features directly in compose.yaml for Docker containers","archived":false,"fork":false,"pushed_at":"2026-04-27T21:51:06.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T23:25:41.000Z","etag":null,"topics":["cybersecurity-awareness","devops","docker","docker-compose","hardening","hardening-commands","hardening-guides","hardening-steps","linux-capabilities","segcomp"],"latest_commit_sha":null,"homepage":"https://apiadept.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexandreelise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-27T21:31:29.000Z","updated_at":"2026-04-27T21:54:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/alexandreelise/caps","commit_stats":null,"previous_names":["alexandreelise/caps"],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/alexandreelise/caps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandreelise%2Fcaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandreelise%2Fcaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandreelise%2Fcaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandreelise%2Fcaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexandreelise","download_url":"https://codeload.github.com/alexandreelise/caps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandreelise%2Fcaps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33793044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cybersecurity-awareness","devops","docker","docker-compose","hardening","hardening-commands","hardening-guides","hardening-steps","linux-capabilities","segcomp"],"created_at":"2026-06-01T21:02:13.877Z","updated_at":"2026-06-01T21:02:14.691Z","avatar_url":"https://github.com/alexandreelise.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CAPS\n\n\u003e An attempt to mitigate resource exhaustion using cgroups features directly in compose.yaml for Docker containers\n\n\u003e [!TIP]\n\u003e Don't let technical problems KILL your AMBITIONS...\n\n![visitor badge](https://visitor-badge.laobi.icu/badge?page_id=alexandreelise.caps\u0026style=flat\u0026format=true)\n![GitHub followers](https://img.shields.io/github/followers/alexandreelise?style=flat)\n![YouTube Channel Views](https://img.shields.io/youtube/channel/views/UCCya8rIL-PVHm8Mt4QPW-xw?style=flat\u0026label=YouTube%20%40ApiAdept%20vues)\n\n\n## PRE-REQUISITE:\n\n- Know how to use the command line\n- Know docker and docker compose basic commands \n\n\n## USAGE:\n\n3 steps :\n\nStep 1:\n\nClone this repo or use the example ```compose.yaml``` file and adapt it:\n\n```shell\n\ngit clone https://github.com/alexandreelise/caps\n\n```\n\nStep 2:\n\nGo to the directory you just cloned and run that command in your terminal\n\n```shell\n\ncd caps \u0026\u0026\nAPP_IMAGE=php:8.5-apache  docker compose up -d\n\n```\n\nor \n\n```shell\n\ncd caps \u0026\u0026\nAPP_IMAGE=replace_with_your_favourite_docker_image_here  docker compose up -d\n\n```\n\nStep 3:\n\nRun ```shell docker compose stats ``` command to **VERIFY** the **RESOURCES** are **ACTUALLY** **RESTRICTED** as **EXPECTED**\n\n```shell\n\ndocker compose stats\n\n```\n\nThat's it! You have successfully mitigated resource exhaustion of your system.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandreelise%2Fcaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandreelise%2Fcaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandreelise%2Fcaps/lists"}