Fix docker-compose test env
Now the Vault comes up uninitialized, such that SHIELD can initialize it
and know how to talk to the Vault.
@@ -5,9 +5,32 @@ services:
ports: [8200]
networks: [internal]
environment:
- VAULT_ADDR: http://0.0.0.0:8200
+ VAULT_API_ADDR: http://127.0.0.1:8200
+ VAULT_LOCAL_CONFIG: >-
+ {
+ "backend": {
+ "file": {
+ "path": "/vault/file"
+ }
+ },
+ "listener": {
+ "tcp": {
+ "address": "0.0.0.0:8200",
+ "tls_disable": 1
+ },
+ },
+ "default_lease_ttl": "168h",
+ "max_lease_ttl": "720h"
+ }
+ cap_add:
+ - IPC_LOCK
volumes:
- 'vault-data:/vault/file'
+ command:
+ - vault
+ - server
+ - "-config"
+ - "/vault/config/local.json"
core:
depends_on:
