37 lines
761 B
YAML
37 lines
761 B
YAML
version: '3'
|
|
|
|
services:
|
|
vault:
|
|
command: vault server -config /etc/vault.hcl
|
|
container_name: vault
|
|
cap_add:
|
|
- IPC_LOCK
|
|
image: vault:${VAULT_VERSION}
|
|
logging:
|
|
driver: journald
|
|
options:
|
|
tag: vault
|
|
restart: unless-stopped
|
|
ports:
|
|
- ${API_IP}:${API_PORT}:8200
|
|
- ${CLUSTER_IP}:${CLUSTER_PORT}:8201
|
|
volumes:
|
|
- ./vault.hcl:/etc/vault.hcl:ro
|
|
links:
|
|
- postgresql
|
|
depends_on:
|
|
- postgresql
|
|
|
|
postgresql:
|
|
container_name: vault-postgresql
|
|
image: postgres:14-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_PASSWORD=vault
|
|
- POSTGRES_USER=vault
|
|
- POSTGRES_DB=vault
|
|
- PGDATA=/data
|
|
volumes:
|
|
- ${POSTGRES_DATA_PATH}:/data
|
|
|