-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (72 loc) · 1.99 KB
/
docker-compose.yml
File metadata and controls
81 lines (72 loc) · 1.99 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright IBM Corp. 2020, 2026
# SPDX-License-Identifier: MPL-2.0
version: "3.8"
services:
db:
image: postgres:11
ports:
- 5432:5432
environment:
- POSTGRES_DB=boundary
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 5s
retries: 5
db-init:
image: hashicorp/boundary:0.9.0
command: ["database", "init", "-config", "/boundary/boundary.hcl"]
volumes:
- "${PWD}/:/boundary:ro,z"
environment:
- BOUNDARY_PG_URL=postgresql://postgres:postgres@db/boundary?sslmode=disable
cap_add:
- IPC_LOCK
depends_on:
db:
condition: service_healthy
boundary:
image: hashicorp/boundary:0.9.0
command: ["server", "-config", "/boundary/boundary.hcl"]
volumes:
- "${PWD}/:/boundary/"
ports:
- "9200:9200"
- "9201:9201"
- "9202:9202"
environment:
- BOUNDARY_PG_URL=postgresql://postgres:postgres@db/boundary?sslmode=disable
- HOSTNAME=boundary
depends_on:
db-init:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "wget", "-O-", "http://boundary:9200"]
interval: 3s
timeout: 5s
retries: 5
# Boundary controller is the last service to start and may not be fully up
# by the time the docker compose command returns, so we force a wait by
# depending a placeholder on the controller healthcheck
wait:
image: busybox:latest
command: ["sleep", "1"]
depends_on:
boundary:
condition: service_healthy
# Private Database Targets - not exposed to host network, only available via Boundary
cassandra:
image: bitnami/cassandra:latest
mysql:
image: mariadb
environment:
- 'MYSQL_ROOT_PASSWORD=my-secret-pw'
redis:
image: redis
mssql:
image: mcr.microsoft.com/mssql/server:2017-CU8-ubuntu
environment:
- 'ACCEPT_EULA=Y'
- 'SA_PASSWORD=yourStrong(!)Password'