-
Notifications
You must be signed in to change notification settings - Fork 5
/
lain.yaml
50 lines (46 loc) · 1.09 KB
/
lain.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
appname: lvault # 全局唯一的应用名
build:
base: laincloud/centos-lain:20180103
prepare:
version: 20180428
script:
- ./prepare.sh
keep:
- node_modules
script:
- npm config set registry https://registry.npm.taobao.org
- ./build.sh
release:
dest_base: laincloud/centos-lain:20180103
copy:
- src: /go/bin/vault
dest: /usr/bin/vault
- src: vault.sh
dest: vault.sh
- src: lvault.sh
dest: lvault.sh
- src: /lain/app/lvault-0.1/*
dest: /lain/app/
web: # 定义一个 web 服务
cmd: /lain/app/vault.sh # 基于 release 产生的发布用 image 运行
memory: 256m
port: 8200 # 服务监听的端口,默认为自动分配一个放在 `PORT` 环境变量里
healthcheck: '/v1/sys/seal-status'
num_instances: 1
env:
- VAULT_ADDR=http://127.0.0.1:8200
proc.lvault:
type: web
cmd: /lain/app/lvault.sh
memory: 256m
mountpoint:
- /v2
port: 8001
healthcheck: '/status'
num_instances: 1
env:
- HTTPS=false
- DEBUG=true
- SSO_CLIENT_ID=
- SSO_CLIENT_SECRET=
- SSO_SERVER_NAME=