feat(openbao): lab7 enable TLS and persistent Raft storage

This commit is contained in:
Голиков Maximillian Антон
2026-11-28 18:26:48 +03:00
parent d628b74817
commit 0ad5195ae5
3 changed files with 41 additions and 0 deletions
+18
View File
@@ -9,6 +9,23 @@ x-api-resources: &api-resources
memory: "${API_MEMORY_RESERVATION:-64M}"
services:
openbao:
image: openbao/openbao:2.5.4
command: ["server", "-config=/etc/bao/server.hcl"]
restart: unless-stopped
environment:
BAO_ADDR: https://openbao:8200
BAO_CACERT: /tls/ca.crt
volumes:
- ./infra/openbao/server.hcl:/etc/bao/server.hcl:ro
- ./certs/private/openbao/server.crt:/tls/server.crt:ro
- ./certs/private/openbao/server.key:/tls/server.key:ro
- ./certs/private/ingress/ca.crt:/tls/ca.crt:ro
- openbao_data:/openbao/file
ports:
- "127.0.0.1:18200:8200"
networks: [internal]
postgres:
image: postgres:16.4-alpine
restart: unless-stopped
@@ -587,6 +604,7 @@ secrets:
file: ./certs/private/minio/reconciler.secret
volumes:
openbao_data:
postgres_socket:
postgres_data:
redis_data: