-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathcompose-dev.yaml
More file actions
84 lines (72 loc) · 1.95 KB
/
compose-dev.yaml
File metadata and controls
84 lines (72 loc) · 1.95 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
82
83
84
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
# SPDX-FileCopyrightText: © 2025 Test in Prod <contact@testinprod.io>
#
# SPDX-License-Identifier: Apache-2.0
services:
auth-api:
build:
context: .
dockerfile_inline: |
FROM node:18-alpine@sha256:06f7bbbcec00dd10c21a3a0962609600159601b5004d84aff142977b449168e9
WORKDIR /app
RUN apk add --no-cache git
RUN git clone ${GIT_REPOSITORY} && \
cd dstack && \
git checkout ${GIT_REV}
WORKDIR /app/dstack/kms/auth-eth
RUN npm install
RUN npx tsc --project tsconfig.json
CMD node dist/src/main.js
environment:
- HOST=0.0.0.0
- PORT=8000
- ETH_RPC_URL=${ETH_RPC_URL}
- KMS_CONTRACT_ADDR=${KMS_CONTRACT_ADDR}
restart: unless-stopped
ports:
- 8001:8000
kms:
image: ${KMS_IMAGE}
volumes:
- kms-volume:/kms
- /var/run/dstack.sock:/var/run/dstack.sock
ports:
- 8000:8000
depends_on:
- auth-api
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 = "http://auth-api:8000"
[core.onboard]
enabled = true
auto_bootstrap_domain = ""
address = "0.0.0.0"
port = 8000