add psql
This commit is contained in:
parent
b891278e58
commit
a5549d4b55
@ -4,6 +4,8 @@ services:
|
|||||||
vault:
|
vault:
|
||||||
command: vault server -config /etc/vault.hcl
|
command: vault server -config /etc/vault.hcl
|
||||||
container_name: vault
|
container_name: vault
|
||||||
|
cap_add:
|
||||||
|
- IPC_LOCK
|
||||||
image: vault:${VAULT_VERSION}
|
image: vault:${VAULT_VERSION}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
@ -15,4 +17,20 @@ services:
|
|||||||
- ${CLUSTER_IP}:${CLUSTER_PORT}:8201
|
- ${CLUSTER_IP}:${CLUSTER_PORT}:8201
|
||||||
volumes:
|
volumes:
|
||||||
- ./vault.hcl:/etc/vault.hcl:ro
|
- ./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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user