fix(vault): raise memlock ulimit to unlimited

Newer hashicorp/vault:latest mlocks more memory than docker's default
64KB memlock ulimit allows; vault crash-looped for ~5900 restarts with
'Failed to lock memory: cannot allocate memory' despite cap_add IPC_LOCK.
Deployed via apply-compose.ps1 -Portainer (mgmt plane, not a git stack).
This commit is contained in:
ginnoir
2026-06-09 18:06:38 -05:00
parent 7aa95fa00a
commit 3cc86d866f
+7
View File
@@ -52,6 +52,13 @@ services:
- edge
cap_add:
- IPC_LOCK
# Newer vault:latest mlocks more than docker's default 64KB memlock ulimit;
# without this it crash-loops with "Failed to lock memory: cannot allocate
# memory" despite IPC_LOCK being granted.
ulimits:
memlock:
soft: -1
hard: -1
environment:
- VAULT_ADDR=http://0.0.0.0:8200
volumes: