feat(vault): auto-unseal on container start via VAULT_UNSEAL_KEY env

This commit is contained in:
Ruslan Bakiev
2026-03-10 20:10:35 +07:00
parent 29309419bf
commit 25623b8f65
2 changed files with 33 additions and 1 deletions

View File

@@ -1,7 +1,9 @@
FROM hashicorp/vault:1.21.3
COPY config /vault/config
COPY entrypoint.sh /vault/entrypoint.sh
RUN chmod +x /vault/entrypoint.sh
EXPOSE 8200 8201
CMD ["vault", "server", "-config=/vault/config/vault.hcl"]
ENTRYPOINT ["/vault/entrypoint.sh"]