forked from akash-network/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
76 lines (72 loc) · 1.63 KB
/
deploy.yml
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
---
version: "2.0"
services:
syncer:
image: redm4x/cloudmos-syncer:1.0.0
env:
- HealthchecksEnabled=true
- SentryDSN=<SENTRY_DSN>
- SentryServerName=<SENTRY_SERVER_NAME>
- HealthChecks_SyncBlocks=<HEALTH_CHECKS_ID>
- HealthChecks_SyncAKTPriceHistory=<HEALTH_CHECKS_ID>
- HealthChecks_SyncProviderInfo=<HEALTH_CHECKS_ID>
- HealthChecks_SyncKeybaseInfo=<HEALTH_CHECKS_ID>
- ChainDatabaseCS=<DATABASE_CONNECTION_STRING>
- ActiveChain=<CHAIN>
expose:
- port: 3079
as: 80
to:
- global: true
cloud-sql-proxy:
image: redm4x/cloud-sql-proxy:1.31.2
env:
- KeyPath=/custom/proxy_key.json
- ConnectionName=<CONNECTION_NAME>
- Token=<TOKEN>
command:
- "sh"
- "-c"
args:
- 'echo "${Token}" | base64 --decode > $KeyPath && /cloud_sql_proxy -instances=$ConnectionName=tcp:0.0.0.0:5432 -credential_file=$KeyPath'
expose:
- port: 5432
as: 5432
to:
- service: syncer
profiles:
compute:
syncer:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
size: 2Gi
cloud-sql-proxy:
resources:
cpu:
units: 0.5
memory:
size: 512mi
storage:
size: 2Gi
placement:
dcloud:
pricing:
syncer:
denom: uakt
amount: 1000
cloud-sql-proxy:
denom: uakt
amount: 1000
deployment:
syncer:
dcloud:
profile: syncer
count: 1
cloud-sql-proxy:
dcloud:
profile: cloud-sql-proxy
count: 1