|
| 1 | +databases: |
| 2 | +- name: temporal-db |
| 3 | + databaseName: temporal |
| 4 | + user: temporal |
| 5 | + plan: Starter |
| 6 | + region: oregon |
| 7 | + |
| 8 | +envVarGroups: |
| 9 | + - name: temporal-shared |
| 10 | + envVars: |
| 11 | + - key: DYNAMIC_CONFIG_FILE_PATH |
| 12 | + value: /etc/temporal/dynamicconfig_es.yaml |
| 13 | + - key: ENABLE_ES |
| 14 | + value: true |
| 15 | + - key: ES_VERSION |
| 16 | + value: v7 |
| 17 | + - key: ES_USER |
| 18 | + value: elastic |
| 19 | + - key: DB |
| 20 | + value: postgresql |
| 21 | + |
| 22 | +services: |
| 23 | +- type: pserv |
| 24 | + name: temporal-elasticsearch |
| 25 | + autoDeploy: false |
| 26 | + plan: Starter |
| 27 | + region: oregon |
| 28 | + env: docker |
| 29 | + dockerfilePath: ./temporal-cluster/elasticsearch/Dockerfile |
| 30 | + envVars: |
| 31 | + - key: PORT |
| 32 | + value: 9200 |
| 33 | + - key: ES_JAVA_OPTS |
| 34 | + value: "-Xms100m -Xmx100m" |
| 35 | + - key: xpack.security.enabled |
| 36 | + value: true |
| 37 | + - key: ELASTIC_PASSWORD |
| 38 | + generateValue: true |
| 39 | + - key: cluster.routing.allocation.disk.threshold_enabled |
| 40 | + value: true |
| 41 | + - key: cluster.routing.allocation.disk.watermark.low |
| 42 | + value: 512mb |
| 43 | + - key: cluster.routing.allocation.disk.watermark.high |
| 44 | + value: 256mb |
| 45 | + - key: cluster.routing.allocation.disk.watermark.flood_stage |
| 46 | + value: 128mb |
| 47 | + - key: discovery.type |
| 48 | + value: single-node |
| 49 | +- type: pserv |
| 50 | + name: temporal-frontend |
| 51 | + autoDeploy: false |
| 52 | + plan: Starter |
| 53 | + region: oregon |
| 54 | + env: docker |
| 55 | + dockerfilePath: ./temporal-cluster/server/auto-setup/Dockerfile |
| 56 | + scaling: |
| 57 | + minInstances: 1 |
| 58 | + maxInstances: 3 |
| 59 | + targetMemoryPercent: 80 |
| 60 | + targetCPUPercent: 80 |
| 61 | + envVars: |
| 62 | + - fromGroup: temporal-shared |
| 63 | + - key: SERVICES |
| 64 | + value: frontend |
| 65 | + - key: SKIP_POSTGRES_DB_CREATION |
| 66 | + value: true |
| 67 | + - key: SKIP_VISIBILITY_DB_SETUP |
| 68 | + value: true |
| 69 | + - key: ES_SEEDS |
| 70 | + fromService: |
| 71 | + name: temporal-elasticsearch |
| 72 | + type: pserv |
| 73 | + property: host |
| 74 | + - key: ES_PWD |
| 75 | + fromService: |
| 76 | + name: temporal-elasticsearch |
| 77 | + type: pserv |
| 78 | + envVarKey: ELASTIC_PASSWORD |
| 79 | + - key: DBNAME |
| 80 | + fromDatabase: |
| 81 | + name: temporal-db |
| 82 | + property: database |
| 83 | + - key: DB_PORT |
| 84 | + fromDatabase: |
| 85 | + name: temporal-db |
| 86 | + property: port |
| 87 | + - key: POSTGRES_USER |
| 88 | + fromDatabase: |
| 89 | + name: temporal-db |
| 90 | + property: user |
| 91 | + - key: POSTGRES_PWD |
| 92 | + fromDatabase: |
| 93 | + name: temporal-db |
| 94 | + property: password |
| 95 | + - key: POSTGRES_SEEDS |
| 96 | + fromDatabase: |
| 97 | + name: temporal-db |
| 98 | + property: host |
| 99 | +- type: pserv |
| 100 | + name: temporal-history |
| 101 | + autoDeploy: false |
| 102 | + plan: Starter |
| 103 | + region: oregon |
| 104 | + env: docker |
| 105 | + dockerfilePath: ./temporal-cluster/server/Dockerfile |
| 106 | + scaling: |
| 107 | + minInstances: 1 |
| 108 | + maxInstances: 3 |
| 109 | + targetMemoryPercent: 80 |
| 110 | + targetCPUPercent: 80 |
| 111 | + envVars: |
| 112 | + - fromGroup: temporal-shared |
| 113 | + - key: SERVICES |
| 114 | + value: history |
| 115 | + - key: TEMPORAL_FRONTEND_HOST |
| 116 | + fromService: |
| 117 | + name: temporal-frontend |
| 118 | + type: pserv |
| 119 | + property: host |
| 120 | + - key: ES_SEEDS |
| 121 | + fromService: |
| 122 | + name: temporal-elasticsearch |
| 123 | + type: pserv |
| 124 | + property: host |
| 125 | + - key: ES_PWD |
| 126 | + fromService: |
| 127 | + name: temporal-elasticsearch |
| 128 | + type: pserv |
| 129 | + envVarKey: ELASTIC_PASSWORD |
| 130 | + - key: DBNAME |
| 131 | + fromDatabase: |
| 132 | + name: temporal-db |
| 133 | + property: database |
| 134 | + - key: POSTGRES_USER |
| 135 | + fromDatabase: |
| 136 | + name: temporal-db |
| 137 | + property: user |
| 138 | + - key: POSTGRES_PWD |
| 139 | + fromDatabase: |
| 140 | + name: temporal-db |
| 141 | + property: password |
| 142 | + - key: POSTGRES_SEEDS |
| 143 | + fromDatabase: |
| 144 | + name: temporal-db |
| 145 | + property: host |
| 146 | +- type: pserv |
| 147 | + name: temporal-matching |
| 148 | + autoDeploy: false |
| 149 | + plan: Starter |
| 150 | + region: oregon |
| 151 | + env: docker |
| 152 | + dockerfilePath: ./temporal-cluster/server/Dockerfile |
| 153 | + scaling: |
| 154 | + minInstances: 1 |
| 155 | + maxInstances: 3 |
| 156 | + targetMemoryPercent: 80 |
| 157 | + targetCPUPercent: 80 |
| 158 | + envVars: |
| 159 | + - fromGroup: temporal-shared |
| 160 | + - key: SERVICES |
| 161 | + value: matching |
| 162 | + - key: TEMPORAL_FRONTEND_HOST |
| 163 | + fromService: |
| 164 | + name: temporal-frontend |
| 165 | + type: pserv |
| 166 | + property: host |
| 167 | + - key: ES_SEEDS |
| 168 | + fromService: |
| 169 | + name: temporal-elasticsearch |
| 170 | + type: pserv |
| 171 | + property: host |
| 172 | + - key: ES_PWD |
| 173 | + fromService: |
| 174 | + name: temporal-elasticsearch |
| 175 | + type: pserv |
| 176 | + envVarKey: ELASTIC_PASSWORD |
| 177 | + - key: DBNAME |
| 178 | + fromDatabase: |
| 179 | + name: temporal-db |
| 180 | + property: database |
| 181 | + - key: POSTGRES_USER |
| 182 | + fromDatabase: |
| 183 | + name: temporal-db |
| 184 | + property: user |
| 185 | + - key: POSTGRES_PWD |
| 186 | + fromDatabase: |
| 187 | + name: temporal-db |
| 188 | + property: password |
| 189 | + - key: POSTGRES_SEEDS |
| 190 | + fromDatabase: |
| 191 | + name: temporal-db |
| 192 | + property: host |
| 193 | +- type: pserv |
| 194 | + autoDeploy: false |
| 195 | + name: temporal-worker |
| 196 | + plan: Starter |
| 197 | + region: oregon |
| 198 | + env: docker |
| 199 | + dockerfilePath: ./temporal-cluster/server/Dockerfile |
| 200 | + scaling: |
| 201 | + minInstances: 1 |
| 202 | + maxInstances: 3 |
| 203 | + targetMemoryPercent: 80 |
| 204 | + targetCPUPercent: 80 |
| 205 | + envVars: |
| 206 | + - fromGroup: temporal-shared |
| 207 | + # The worker service needs to wait for the history service to be up first, |
| 208 | + # otherwise it will fail with "error starting scanner". |
| 209 | + - key: DEPENDS_ON_HISTORY |
| 210 | + fromService: |
| 211 | + name: temporal-history |
| 212 | + type: pserv |
| 213 | + property: host |
| 214 | + - key: SERVICES |
| 215 | + value: worker |
| 216 | + - key: TEMPORAL_FRONTEND_HOST |
| 217 | + fromService: |
| 218 | + name: temporal-frontend |
| 219 | + type: pserv |
| 220 | + property: host |
| 221 | + - key: ES_SEEDS |
| 222 | + fromService: |
| 223 | + name: temporal-elasticsearch |
| 224 | + type: pserv |
| 225 | + property: host |
| 226 | + - key: ES_PWD |
| 227 | + fromService: |
| 228 | + name: temporal-elasticsearch |
| 229 | + type: pserv |
| 230 | + envVarKey: ELASTIC_PASSWORD |
| 231 | + - key: DBNAME |
| 232 | + fromDatabase: |
| 233 | + name: temporal-db |
| 234 | + property: database |
| 235 | + - key: POSTGRES_USER |
| 236 | + fromDatabase: |
| 237 | + name: temporal-db |
| 238 | + property: user |
| 239 | + - key: POSTGRES_PWD |
| 240 | + fromDatabase: |
| 241 | + name: temporal-db |
| 242 | + property: password |
| 243 | + - key: POSTGRES_SEEDS |
| 244 | + fromDatabase: |
| 245 | + name: temporal-db |
| 246 | + property: host |
| 247 | +- type: web |
| 248 | + name: temporal-ui |
| 249 | + autoDeploy: false |
| 250 | + plan: Starter |
| 251 | + region: oregon |
| 252 | + env: docker |
| 253 | + dockerfilePath: ./temporal-cluster/web/Dockerfile |
| 254 | + envVars: |
| 255 | + - key: PORT |
| 256 | + value: 8088 |
| 257 | + - key: TEMPORAL_PERMIT_WRITE_API |
| 258 | + value: true |
| 259 | + - key: TEMPORAL_GRPC_HOST |
| 260 | + fromService: |
| 261 | + name: temporal-frontend |
| 262 | + type: pserv |
| 263 | + property: host |
| 264 | +- type: web |
| 265 | + repo: https://github.com/render-examples/sample-temporal-app |
| 266 | + name: app-workflow-trigger |
| 267 | + plan: Starter |
| 268 | + region: oregon |
| 269 | + env: go |
| 270 | + buildCommand: go build start/main.go |
| 271 | + startCommand: ./main |
| 272 | + envVars: |
| 273 | + - key: TEMPORAL_CLUSTER_HOST |
| 274 | + fromService: |
| 275 | + name: temporal-frontend |
| 276 | + type: pserv |
| 277 | + property: host |
| 278 | +- type: worker |
| 279 | + repo: https://github.com/render-examples/sample-temporal-app |
| 280 | + name: app-worker |
| 281 | + plan: Starter |
| 282 | + region: oregon |
| 283 | + env: go |
| 284 | + buildCommand: go build worker/main.go |
| 285 | + startCommand: ./main |
| 286 | + envVars: |
| 287 | + - key: TEMPORAL_CLUSTER_HOST |
| 288 | + fromService: |
| 289 | + name: temporal-frontend |
| 290 | + type: pserv |
| 291 | + property: host |
0 commit comments