-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.yaml
48 lines (48 loc) · 1.35 KB
/
spec.yaml
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
name: zero2prod
# Check https://www.digitalocean.com/docs/app-platform/#regional-availability
# https://www.digitalocean.com/docs/platform/availability-matrix/
region: sgp1
services:
- name: zero2prod
# Relative to the repository root
dockerfile_path: Dockerfile
source_dir: .
github:
branch: main
deploy_on_push: true
repo: adamwoolhether/0ToProd
health_check:
http_path: /health_check
http_port: 8000
instance_count: 1
instance_size_slug: basic-xxs
routes:
- path: /
envs:
- key: APP_DATABASE__USERNAME
scope: RUN_TIME
value: ${newsletter.USERNAME}
- key: APP_DATABASE__PASSWORD
scope: RUN_TIME
value: ${newsletter.PASSWORD}
- key: APP_DATABASE__HOST
scope: RUN_TIME
value: ${newsletter.HOSTNAME}
- key: APP_DATABASE__PORT
scope: RUN_TIME
value: ${newsletter.PORT}
- key: APP_DATABASE_DATABASE_NAME
scope: RUN_TIME
value: ${newsletter.DATABASE}
- key: APP_APPLICATION__BASE_URL
scope: RUN_TIME
value: ${APP_URL}
- key: APP_APPLICATION__HMAC_SECRET
scope: RUN_TIME
value: "super-long-and-secret-random-key-needed-to-verify-message-integrity"
databases:
- engine: PG
name: newsletter
num_nodes: 1
size: db-s-dev-database
version: "12"