-
Notifications
You must be signed in to change notification settings - Fork 0
/
spec.yaml
63 lines (63 loc) · 2.09 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#! spec.yaml
name: diner-backend-app
# Check https://www.digitalocean.com/docs/app-platform/#regional-availability
# for a list of all the available options.
# You can get region slugs from
# https://www.digitalocean.com/docs/platform/availability-matrix/
# They must specified lowercased.
# `fra` stands for Frankfurt (Germany - EU)
region: nyc
services:
- name: diner-backend
# Relative to the repository root
dockerfile_path: Dockerfile
source_dir: .
github:
# Depending on when you created the repository,
# the default branch on GitHub might have been named `master`
branch: develop
# Deploy a new version on every commit to `main`!
# Continuous Deployment, here we come!
deploy_on_push: true
repo: MilanLoveless/diner_backend
# Active probe used by DigitalOcean's to ensure our application is healthy
health_check:
# The path to our health check endpoint!
# It turned out to be useful in the end!
http_path: /health_check
# The port the application will be listening on for incoming requests
# It should match what we specified in our configuration/production.yaml file!
http_port: 8000
# For production workloads we'd go for at least two!
# But let's try to keep the bill under control for now...
instance_count: 1
instance_size_slug: basic-xxs
# All incoming requests should be routed to our app
routes:
- path: /
envs:
- key: APP_DATABASE__USERNAME
scope: RUN_TIME
value: ${diner.USERNAME}
- key: APP_DATABASE__PASSWORD
scope: RUN_TIME
value: ${diner.PASSWORD}
- key: APP_DATABASE__HOST
scope: RUN_TIME
value: ${diner.HOSTNAME}
- key: APP_DATABASE__PORT
scope: RUN_TIME
value: ${diner.PORT}
- key: APP_DATABASE__DATABASE_NAME
scope: RUN_TIME
value: ${diner.DATABASE}
databases:
# PG = Postgres
- engine: PG
# Database name
name: diner
# Again, let's keep the bill lean
num_nodes: 1
size: db-s-dev-database
# Postgres version - using the latest here
version: "12"