forked from Cray-HPE/hms-sls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
66 lines (66 loc) · 1.69 KB
/
docker-compose.yaml
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
version: '3.1'
services:
s3:
image: arti.dev.cray.com/third-party-docker-stable-local/minio/minio:RELEASE.2020-04-10T03-34-42Z
hostname: s3
environment:
MINIO_ACCESS_KEY: s3-access-key
MINIO_SECRET_KEY: s3-secret-key
command: server /data
ports:
- "9000:9000"
s3-init:
image: arti.dev.cray.com/third-party-docker-stable-local/minio/mc:latest
hostname: s3-init
environment:
- MC_HOST_S3=http://s3-access-key:s3-secret-key@s3:9000
command: mb S3/sls
depends_on:
- s3
postgres:
hostname: postgres
image: arti.dev.cray.com/third-party-docker-stable-local/postgres:11-alpine
environment:
- POSTGRES_USER=slsuser
- POSTGRES_DB=sls
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
sls-init:
build: .
command: ["sls-init"]
environment:
- POSTGRES_HOST=postgres
- DBOPTS=sslmode=disable
- DBUSER=slsuser
depends_on:
- postgres
vault:
hostname: vault
image: arti.dev.cray.com/third-party-docker-stable-local/vault:1.5.5
environment:
- VAULT_DEV_ROOT_TOKEN_ID=hms
- VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200
- VAULT_ADDR=http://127.0.0.1:8200
ports:
- "8200:8200"
cap_add:
- IPC_LOCK
sls:
build: .
environment:
- POSTGRES_HOST=postgres
- DBOPTS=sslmode=disable
- DBUSER=slsuser
- CRAY_VAULT_AUTH_PATH=auth/token/create
- CRAY_VAULT_ROLE_FILE=configs/namespace
- CRAY_VAULT_JWT_FILE=configs/token
- VAULT_ADDR=http://vault:8200
- VAULT_TOKEN=hms
- VAULT_KEYPATH=hms-creds
ports:
- "8376:8376"
depends_on:
- postgres
- sls-init
- vault