-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
56 lines (51 loc) · 1.11 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.7'
services:
terraform-shell:
image: hashicorp/terraform
container_name: terraform-shell
volumes:
- ./terraform:/playground
working_dir: /playground
entrypoint: /bin/ash
tty: true
depends_on:
- keycloak
- vault
networks:
- keycloak
keycloak:
image: quay.io/keycloak/keycloak
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080" ]
interval: 5s
timeout: 5s
retries: 3
start_period: 5s
command:
- start-dev
environment:
- KEYCLOAK_ADMIN=root
- KEYCLOAK_ADMIN_PASSWORD=root
ports:
- 8080:8080
networks:
- keycloak
vault:
image: hashicorp/vault
healthcheck:
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8200/ui/vault/auth" ]
interval: 5s
timeout: 5s
retries: 3
start_period: 10s
environment:
- VAULT_DEV_ROOT_TOKEN_ID=myroot
- VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200
ports:
- 8200:8200
cap_add:
- IPC_LOCK
networks:
- keycloak
networks:
keycloak: