-
Notifications
You must be signed in to change notification settings - Fork 11
/
app-spec.yml
53 lines (53 loc) · 1.33 KB
/
app-spec.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
alerts:
- rule: DEPLOYMENT_FAILED
- rule: DOMAIN_FAILED
domains:
- domain: ${DIGITALOCEAN_APP_DOMAIN}
type: PRIMARY
- domain: ${DIGITALOCEAN_APP_DOMAIN_ALIAS}
type: ALIAS
minimum_tls_version: "1.2"
envs:
- key: ENV
scope: RUN_TIME
value: ${ENV}
- key: POLYGONSCAN_API_KEY
scope: RUN_AND_BUILD_TIME
type: SECRET
value: ${POLYGONSCAN_API_KEY}
- key: WEB3_INFURA_PROJECT_ID
scope: RUN_AND_BUILD_TIME
type: SECRET
value: ${WEB3_INFURA_PROJECT_ID}
- key: PREFECT_API_KEY
scope: RUN_AND_BUILD_TIME
type: SECRET
value: ${PREFECT_API_KEY}
- key: PREFECT_API_URL
scope: RUN_AND_BUILD_TIME
type: SECRET
value: ${PREFECT_API_URL}
name: ${DIGITALOCEAN_APP_NAME}
region: nyc
services:
- environment_slug: python
image:
registry_type: DOCR
repository: dash-apps
tag: ${GITHUB_SHA}
health_check:
http_path: /api/v1
initial_delay_seconds: 0
timeout_seconds: 1
period_seconds: 10
success_threshold: 1
failure_threshold: 6
http_port: 8050
routes:
- path: /api/v1/
preserve_path_prefix: true
instance_count: 1
instance_size_slug: basic-s
name: carbon-api
run_command: gunicorn --workers=1 --threads=2 --worker-tmp-dir /dev/shm --timeout ${GUNICORN_TIMEOUT} src.apps.api.app:app
source_dir: /