-
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.
feat(config): Allow the use of environment variables in the configura…
…tion file I also added a way of deserilizing numbers
- Loading branch information
Showing
4 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,51 @@ | ||
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: Yag000/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: / | ||
|
||
databases: | ||
# PG = Postgres | ||
- engine: PG | ||
# Database name | ||
name: | ||
newsletter | ||
# Again, let's keep the bill lean | ||
num_nodes: 1 | ||
size: | ||
db-s-dev-database | ||
# Postgres version - using the latest here | ||
version: "12" |
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