Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
47 lines (47 loc) · 1.62 KB
/
Copy pathrender.yaml
File metadata and controls
47 lines (47 loc) · 1.62 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
# codecity on the web (service/). One Starter instance and no autoscaling, so compute is a fixed
# price (switch to `plan: free` to pay nothing, at the cost of sleeping when idle).
# Bandwidth is the one thing billed by use ($0.15 a GB beyond the workspace's allowance, 5 GB on
# Hobby, shared by every service): the server stops serving maps once it has sent
# BANDWIDTH_GB_PER_MONTH.
#
# A free instance sleeps after 15 minutes without visitors, takes about a minute to wake, and loses
# its files when it sleeps: the drawn maps, and the count of bandwidth spent. Starter does not
# sleep, so these last until the next deploy; to keep them through deploys too, add this under
# the service:
#
# disk:
# name: data
# mountPath: /var/data
# sizeGB: 1
#
# with DATA_DIR set to /var/data.
services:
- type: web
name: codecity
runtime: docker
plan: starter
numInstances: 1
dockerfilePath: ./service/Dockerfile
dockerContext: .
healthCheckPath: /healthz
# Deploy only for changes that affect the service or the maps.
buildFilter:
paths:
- src/**
- service/**
- package.json
- package-lock.json
- vite.config.ts
- tsconfig*.json
envVars:
# A free instance has a fraction of a CPU, so it is given longer to clone and draw.
- key: CLONE_SECONDS
value: "240"
- key: DRAW_SECONDS
value: "240"
- key: BANDWIDTH_GB_PER_MONTH
value: "3"
# Optional. Any GitHub token, with no permissions at all, lifts GitHub's limit on lookups
# from 60 to 5,000 an hour.
- key: GITHUB_TOKEN
sync: false