-
Notifications
You must be signed in to change notification settings - Fork 78
/
render.yaml
161 lines (153 loc) · 3.79 KB
/
render.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
###
# Two pairs of each service are defined here, for production and staging.
###
services:
# Backend prod
- type: pserv
name: backend
env: docker
numInstances: 1
dockerfilePath: ./docker/backend/Dockerfile
dockerContext: .
envVars:
- fromGroup: hasura-secrets
- fromGroup: discord-secrets
- fromGroup: github-secrets
- fromGroup: backend-secrets
- key: SOURCECRED_LEDGER_BRANCH
value: master
- key: GRAPHQL_HOST
fromService:
name: hasura
type: web
property: host
- key: FRONTEND_URL
value: https://metagame.wtf
# Backend staging
- type: pserv
name: staging-backend
env: docker
branch: develop
numInstances: 1
dockerfilePath: ./docker/backend/Dockerfile
dockerContext: .
envVars:
- fromGroup: hasura-staging-secrets
- fromGroup: discord-secrets
- fromGroup: github-secrets
- fromGroup: backend-secrets
- key: GRAPHQL_HOST
fromService:
name: staging-hasura
type: web
property: host
- key: FRONTEND_URL
value: https://test.metagame.wtf
# Hasura prod
- type: web
name: hasura
env: docker
healthCheckPath: /healthz
numInstances: 1
dockerfilePath: ./hasura/Dockerfile
dockerContext: ./hasura
envVars:
- fromGroup: hasura-secrets
- key: HASURA_GRAPHQL_DATABASE_URL
fromDatabase:
name: metagame-db
property: connectionString
- key: BACKEND_HOST
fromService:
name: backend
type: pserv
property: hostport
- key: HASURA_GRAPHQL_SERVER_PORT
value: 10000
- key: HASURA_GRAPHQL_ENABLE_CONSOLE
value: true
- key: PORT
value: 10000
# Hasura staging
- type: web
name: staging-hasura
env: docker
branch: develop
healthCheckPath: /healthz
numInstances: 1
dockerfilePath: ./hasura/Dockerfile
dockerContext: ./hasura
envVars:
- fromGroup: hasura-staging-secrets
- key: HASURA_GRAPHQL_DATABASE_URL
fromDatabase:
name: staging-metagame-db
property: connectionString
- key: BACKEND_HOST
fromService:
name: staging-backend
type: pserv
property: hostport
- key: HASURA_GRAPHQL_SERVER_PORT
value: 10000
- key: HASURA_GRAPHQL_ENABLE_CONSOLE
value: true
- key: PORT
value: 10000
# discord-bot
- type: web
name: discord-bot
env: docker
healthCheckPath: /healthz
numInstances: 1
dockerfilePath: ./docker/discord-bot/Dockerfile
dockerContext: .
envVars:
- fromGroup: hasura-secrets
- fromGroup: sourcecred
- key: PORT
value: 5000
- key: FRONTEND_URL
value: https://metagame.wtf
- key: SOURCECRED_LEDGER_BRANCH
value: master
- key: GRAPHQL_HOST
fromService:
name: hasura
type: web
property: host
# Note, no staging discord-bot
databases:
- name: metagame-db
plan: starter
- name: staging-metagame-db
plan: starter
envVarGroups:
- name: hasura-secrets
envVars:
- key: HASURA_GRAPHQL_ADMIN_SECRET
generateValue: true
- name: hasura-staging-secrets
envVars:
- key: HASURA_GRAPHQL_ADMIN_SECRET
generateValue: true
- name: github-secrets
envVars:
- key: GITHUB_API_TOKEN
sync: false
- name: sourcecred
envVars:
- key: DISCORD_BOT_TOKEN
sync: false
- key: GITHUB_API_TOKEN
sync: false
- name: discord-secrets
envVars:
- key: DISCORD_BOT_TOKEN
sync: false
- key: DISCORD_BOT_CLIENT_SECRET
sync: false
- name: backend-secrets
envVars:
- key: IMGIX_TOKEN
sync: false