diff --git a/docker-compose/registry/docker-compose.yml.j2 b/docker-compose/registry/docker-compose.yml.j2 index 19909b3f..92a4d167 100644 --- a/docker-compose/registry/docker-compose.yml.j2 +++ b/docker-compose/registry/docker-compose.yml.j2 @@ -61,6 +61,11 @@ services: - internal restart: unless-stopped pull_policy: missing + deploy: + resources: + limits: + cpus: "2" + memory: "512M" security_opt: - no-new-privileges=true environment: @@ -75,6 +80,11 @@ services: oci-registry-ui: restart: unless-stopped pull_policy: missing + deploy: + resources: + limits: + cpus: "2" + memory: "512M" security_opt: - no-new-privileges=true image: "joxit/docker-registry-ui:2.5.7" diff --git a/docker-compose/unifi-network-application/docker-compose.yml.j2 b/docker-compose/unifi-network-application/docker-compose.yml.j2 index 731bd0e3..2a9eb4aa 100644 --- a/docker-compose/unifi-network-application/docker-compose.yml.j2 +++ b/docker-compose/unifi-network-application/docker-compose.yml.j2 @@ -58,6 +58,11 @@ services: - db-data:/data/db restart: unless-stopped pull_policy: missing + deploy: + resources: + limits: + cpus: "2" + memory: "512M" security_opt: - no-new-privileges=true environment: