Add hashivault option as docker-compose optional container (#14161)

Co-authored-by: Sarabraj Singh <singh.sarabraj@gmail.com>
This commit is contained in:
Alan Rominger
2023-06-26 15:48:58 -04:00
committed by GitHub
parent c736986023
commit 974465e46a
6 changed files with 86 additions and 1 deletions

View File

@@ -233,6 +233,19 @@ services:
privileged: true
{% endfor %}
{% endif %}
{% if enable_vault|bool %}
vault:
image: hashicorp/vault:latest
container_name: tools_vault_1
hostname: vault
ports:
- "1234:1234"
environment:
VAULT_DEV_ROOT_TOKEN_ID: "{{ vault_password }}"
VAULT_DEV_LISTEN_ADDRESS: "0.0.0.0:1234"
cap_add:
- IPC_LOCK
{% endif %}
volumes:
awx_db: