-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from josemoura212/chapter-5
create spec.yaml
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#! spec.yaml | ||
name: zero2prod | ||
# 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: fra | ||
services: | ||
- name: zero2prod | ||
# 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: master | ||
# Deploy a new version on every commit to `main`! | ||
# Continuous Deployment, here we come! | ||
deploy_on_push: true | ||
# !!! Fill in with your details | ||
# e.g. LukeMathWalker/zero-to-production | ||
repo: josemoura212/zero2prod | ||
# 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: / |