forked from asachs01/lectio-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yaml
More file actions
103 lines (101 loc) · 2.4 KB
/
Copy pathapp.yaml
File metadata and controls
103 lines (101 loc) · 2.4 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
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
name: lectio-api
region: nyc
domains:
- domain: lectio-api.org
type: PRIMARY
services:
- name: api
dockerfile_path: Dockerfile
source_dir: /
github:
branch: main
deploy_on_push: true
repo: asachs01/lectio-api
http_port: 3000
instance_count: 1
instance_size_slug: basic-xxs
routes:
- path: /
health_check:
http_path: /health
initial_delay_seconds: 10
period_seconds: 30
timeout_seconds: 5
success_threshold: 1
failure_threshold: 3
envs:
- key: NODE_ENV
value: production
- key: PORT
value: "3000"
- key: API_VERSION
value: v1
- key: DB_HOST
value: ${lectio-db.HOSTNAME}
- key: DB_PORT
value: ${lectio-db.PORT}
- key: DB_NAME
value: ${lectio-db.DATABASE}
- key: DB_USERNAME
value: ${lectio-db.USERNAME}
- key: DB_PASSWORD
value: ${lectio-db.PASSWORD}
type: SECRET
- key: DB_SSL
value: "true"
# Redis temporarily disabled - will add later
# - key: REDIS_URL
# value: ${lectio-redis.DATABASE_URL}
# type: SECRET
- key: JWT_SECRET
type: SECRET
- key: JWT_EXPIRES_IN
value: 1h
- key: JWT_REFRESH_EXPIRES_IN
value: 7d
- key: LOG_LEVEL
value: info
- key: SWAGGER_ENABLED
value: "true"
- key: CORS_ORIGINS
value: "*"
- key: RATE_LIMIT_WINDOW_MS
value: "900000"
- key: RATE_LIMIT_MAX_REQUESTS
value: "100"
- key: ADMIN_KEY
type: SECRET
databases:
- name: lectio-db
engine: PG
version: "15"
size: db-s-dev-database
num_nodes: 1
# Jobs for database setup
jobs:
- name: migrate-and-seed
kind: POST_DEPLOY
github:
branch: main
repo: asachs01/lectio-api
dockerfile_path: Dockerfile
source_dir: /
run_command: "npm run db:migrate && npm run db:seed:prod"
instance_count: 1
instance_size_slug: basic-xxs
envs:
- key: NODE_ENV
value: production
- key: DB_HOST
value: ${lectio-db.HOSTNAME}
- key: DB_PORT
value: ${lectio-db.PORT}
- key: DB_NAME
value: ${lectio-db.DATABASE}
- key: DB_USERNAME
value: ${lectio-db.USERNAME}
- key: DB_PASSWORD
value: ${lectio-db.PASSWORD}
type: SECRET
- key: DB_SSL
value: "true"