https://github.com/willfarrell/docker-vault-env
script to bootstrap ENV from vault
https://github.com/willfarrell/docker-vault-env
Last synced: about 1 year ago
JSON representation
script to bootstrap ENV from vault
- Host: GitHub
- URL: https://github.com/willfarrell/docker-vault-env
- Owner: willfarrell
- License: isc
- Created: 2017-01-09T01:30:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-10T16:28:38.000Z (about 9 years ago)
- Last Synced: 2025-01-19T13:27:25.553Z (about 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker vault-env
script to bootstrap ENV from vault
## Sample Use
### Dockerfile
```Dockerfile
...
RUN cd /usr/bin \
&& wget https://raw.githubusercontent.com/willfarrell/docker-vault-env/master/vault-env \
&& chmod a+x vault-env\
&& vault-env setup
...
```
### docker-entrypoint.sh
```bash
#!/bin/bash
vault-env bootstrap
exec "${@}"
```
### docker-compose.yml
```yml
version: "2"
services:
service:
...
links:
- vault
env_file:
- vault-service.env
vault:
image: mycompany/vault:latest
expose:
- "8022"
restart: always
read_only: false
security_opt:
- "no-new-privileges"
volumes:
- "./log/vault:/var/log:rw"
```
### vault-service.env
```bash
VAULT_ADDR="http://localhost:8200/v1"
VAULT_KEY=""
VAULT_TOKEN=""
```
## Vault Setup
### Policies
### Docker Container Accounts
## TODO
- [ ] Docs: Policy setup
- [ ] Docs: Auth setup
- [ ] CI w/ Travis