-
Notifications
You must be signed in to change notification settings - Fork 0
/
spec.yaml.tmpl
52 lines (52 loc) · 1.2 KB
/
spec.yaml.tmpl
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
databases:
- engine: PG
name: newsletterdb
num_nodes: 1
size: db-s-dev-database
version: "12"
name: newsletter
region: nyc
services:
- dockerfile_path: Dockerfile
envs:
- key: APP_APPLICATION__BASE_URL
scope: RUN_TIME
value: ${APP_URL}
- key: APP_DATABASE__USERNAME
scope: RUN_TIME
value: ${newsletterdb.USERNAME}
- key: APP_DATABASE__PASSWORD
scope: RUN_TIME
value: ${newsletterdb.PASSWORD}
- key: APP_DATABASE__HOST
scope: RUN_TIME
value: ${newsletterdb.HOSTNAME}
- key: APP_DATABASE__PORT
scope: RUN_TIME
value: ${newsletterdb.PORT}
- key: APP_DATABASE__DATABASE_NAME
scope: RUN_TIME
value: ${newsletterdb.DATABASE}
- key: APP_EMAIL_CLIENT__AUTHORIZATION_TOKEN
scope: RUN_TIME
type: SECRET
{{ with secret "kv/newsletter" }}
value: {{ .Data.authorization_token }}
- key: APP_EMAIL_CLIENT__SENDER_EMAIL
scope: RUN_TIME
type: SECRET
value: {{ .Data.sender_email }}
{{ end }}
github:
branch: main
deploy_on_push: true
repo: pnadon/newsletter
health_check:
http_path: /health_check
http_port: 8000
instance_count: 1
instance_size_slug: basic-xxs
name: newsletter
routes:
- path: /
source_dir: .