Skip to content

Commit ae75d6c

Browse files
committed
add vault dev server to docker-compose.yml for quick examples and testing
1 parent 2133e73 commit ae75d6c

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# Local repos for tests
1818
*.local
1919
.env
20+
.psenvrc
2021

2122
# The binary
2223
picobot

docker-compose.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1-
version: 3
1+
version: "3"
2+
23
services:
3-
image: picostack/picobot:v1
4-
environment:
5-
HOSTNAME: ${HOSTNAME}
6-
DEBUG: "1"
7-
DIRECTORY: "/cache"
8-
CHECK_INTERVAL: "10s"
9-
VAULT_ADDR: "https://vault.my.infra.systems"
10-
VAULT_TOKEN: ${VAULT_TOKEN}
11-
VAULT_PATH: "a/subdirectory/inside/vault/"
12-
volumes:
13-
- /var/run/docker.sock:/var/run/docker.sock
14-
- /cache:/cache
4+
picobot:
5+
image: picostack/picobot
6+
environment:
7+
HOSTNAME: ${HOSTNAME}
8+
DEBUG: "1"
9+
DIRECTORY: "/cache"
10+
CHECK_INTERVAL: "10s"
11+
VAULT_ADDR: "https://vault.my.infra.systems"
12+
VAULT_TOKEN: ${VAULT_TOKEN}
13+
VAULT_PATH: "a/subdirectory/inside/vault/"
14+
volumes:
15+
- /var/run/docker.sock:/var/run/docker.sock
16+
- /cache:/cache
17+
vault:
18+
image: vault
19+
command: server -dev
20+
environment:
21+
VAULT_DEV_ROOT_TOKEN_ID: 00000000-0000-0000-0000-000000000000
22+
cap_add:
23+
- IPC_LOCK
24+
ports:
25+
- 8200:8200

0 commit comments

Comments
 (0)