-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
71 lines (68 loc) · 1.38 KB
/
deploy.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
67
68
69
70
71
---
version: "2.0"
services:
api:
image: {{IMAGE_NAME}}
depends-on: cloud-sql-proxy
env:
- DOPPLER_TOKEN={{DOPPLER_TOKEN}}
- SENTRY_SERVER_NAME=akash
expose:
- port: 3000
as: 80
accept:
- {{API_DOMAIN}}
to:
- global: true
cloud-sql-proxy:
image: redm4x/cloud-sql-proxy:1.31.2
env:
- KeyPath=/custom/proxy_key.json
- ConnectionName=cloudmos-explorer:us-central1:cloudmos-postgresql
- Token={{SQL_PROXY_AUTH_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: api
profiles:
compute:
api:
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:
api:
denom: uakt
amount: 1000
cloud-sql-proxy:
denom: uakt
amount: 1000
deployment:
api:
dcloud:
profile: api
count: 1
cloud-sql-proxy:
dcloud:
profile: cloud-sql-proxy
count: 1