services:
vault:
image: hashicorp/vault:1.18
container_name: codetether-vault
restart: unless-stopped
ports:
- "8200:8200"
cap_add:
- IPC_LOCK
environment:
VAULT_DEV_ROOT_TOKEN_ID: ${VAULT_DEV_ROOT_TOKEN:-codetether-dev-root}
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
VAULT_ADDR: http://0.0.0.0:8200
command: >
server -dev
-dev-root-token-id=${VAULT_DEV_ROOT_TOKEN:-codetether-dev-root}
-dev-listen-address=0.0.0.0:8200
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8200/v1/sys/health"]
interval: 5s
timeout: 3s
retries: 10
volumes:
- vault-file:/vault/file
- vault-logs:/vault/logs
volumes:
vault-file:
vault-logs: