-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathcompose-simple.yaml
More file actions
60 lines (49 loc) · 1.3 KB
/
compose-simple.yaml
File metadata and controls
60 lines (49 loc) · 1.3 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
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
#
# SPDX-License-Identifier: Apache-2.0
# KMS deployment with external auth-simple webhook
# auth-simple runs outside the CVM (operator infrastructure)
services:
kms:
image: ${KMS_IMAGE}
volumes:
- kms-volume:/kms
- /var/run/dstack.sock:/var/run/dstack.sock
ports:
- 8000:8000
restart: unless-stopped
configs:
- source: kms_config
target: /kms/kms.toml
command: sh -c 'mkdir -p /kms/certs /kms/images && exec dstack-kms -c /kms/kms.toml'
volumes:
kms-volume:
configs:
kms_config:
content: |
[rpc]
address = "0.0.0.0"
port = 8000
[rpc.tls]
key = "/kms/certs/rpc.key"
certs = "/kms/certs/rpc.crt"
[rpc.tls.mutual]
ca_certs = "/kms/certs/tmp-ca.crt"
mandatory = false
[core]
cert_dir = "/kms/certs"
admin_token_hash = "${ADMIN_TOKEN_HASH}"
[core.image]
verify = true
cache_dir = "/kms/images"
download_url = "${IMAGE_DOWNLOAD_URL}"
download_timeout = "2m"
[core.auth_api]
type = "webhook"
[core.auth_api.webhook]
url = "${AUTH_WEBHOOK_URL}"
[core.onboard]
enabled = true
auto_bootstrap_domain = ""
address = "0.0.0.0"
port = 8000