adding in simpler example for config
This commit is contained in:
@@ -1,323 +1,49 @@
|
|||||||
# Official documentation: https://docs.digitalocean.com/products/app-platform/reference/app-spec/
|
# Official documentation: https://docs.digitalocean.com/products/app-platform/reference/app-spec/
|
||||||
|
|
||||||
jobs:
|
# send an alert when a deployment fails
|
||||||
- envs:
|
alerts:
|
||||||
- value:
|
- rule: DEPLOYMENT_FAILED
|
||||||
scope
|
# hook up a domain in digitalocean dashboard > networking > domains
|
||||||
type
|
# so that you can use it here
|
||||||
key
|
# domains:
|
||||||
instance_count
|
# - domain: example-app.com
|
||||||
name
|
# type: PRIMARY
|
||||||
image
|
# features:
|
||||||
registry_type
|
# - enable-kata-build
|
||||||
registry
|
|
||||||
repository
|
|
||||||
tag
|
|
||||||
deploy_on_push
|
|
||||||
enabled
|
|
||||||
dockerfile_path
|
|
||||||
run_command
|
|
||||||
source_dir
|
|
||||||
alerts (array)
|
|
||||||
rule
|
|
||||||
disabled
|
|
||||||
operator
|
|
||||||
value
|
|
||||||
window
|
|
||||||
github
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
gitlab
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
build_command
|
|
||||||
instance_size_slug
|
|
||||||
log_destinations (array)
|
|
||||||
name
|
|
||||||
papertrail
|
|
||||||
endpoint
|
|
||||||
datadog
|
|
||||||
endpoint
|
|
||||||
api_key
|
|
||||||
logtail
|
|
||||||
token
|
|
||||||
git
|
|
||||||
repo_clone_url
|
|
||||||
branch
|
|
||||||
environment_slug
|
|
||||||
kind
|
|
||||||
|
|
||||||
functions (array)
|
|
||||||
|
|
||||||
name
|
# the name of the overall app. remember that an app in digital ocean app-platform
|
||||||
source_dir
|
# can include many services
|
||||||
alerts (array)
|
name: example-app-name
|
||||||
rule
|
region: nyc
|
||||||
disabled
|
services:
|
||||||
operator
|
# cors security, for when you are deploying a backend app and want to only
|
||||||
value
|
# allow a certain frontend domain to access your web service.
|
||||||
window
|
# - cors:
|
||||||
log_destinations (array)
|
# allow_origins:
|
||||||
name
|
# - prefix: https://internal.example-app.com
|
||||||
papertrail
|
|
||||||
endpoint
|
|
||||||
datadog
|
|
||||||
endpoint
|
|
||||||
api_key
|
|
||||||
logtail
|
|
||||||
token
|
|
||||||
routes (array)
|
|
||||||
path
|
|
||||||
preserve_path_prefix
|
|
||||||
cors
|
|
||||||
allow_headers (array)
|
|
||||||
expose_headers (array)
|
|
||||||
max_age
|
|
||||||
allow_credentials
|
|
||||||
allow_origins (array)
|
|
||||||
exact
|
|
||||||
prefix
|
|
||||||
regex
|
|
||||||
allow_methods (array)
|
|
||||||
git
|
|
||||||
repo_clone_url
|
|
||||||
branch
|
|
||||||
github
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
gitlab
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
envs (array)
|
|
||||||
value
|
|
||||||
scope
|
|
||||||
type
|
|
||||||
key
|
|
||||||
|
|
||||||
domains (array)
|
# if you are using docker to deploy, set the path from the root of the
|
||||||
|
# repository that you have connected
|
||||||
|
dockerfile_path: Dockerfile
|
||||||
|
# an obvious one, any environment variables.
|
||||||
|
envs:
|
||||||
|
- key: HUGO_VERSION
|
||||||
|
# this option is used if the build process should have access to variables
|
||||||
|
scope: RUN_AND_BUILD_TIME
|
||||||
|
value: 0.81.0
|
||||||
|
# the repository that you want this app to deploy on. make sure you have
|
||||||
|
# enabled permissions for this repo in digital ocean dashboard
|
||||||
|
github:
|
||||||
|
branch: main
|
||||||
|
deploy_on_push: true
|
||||||
|
# <your github username>/<repo name>
|
||||||
|
repo: example-org/example-repo
|
||||||
|
http_port: 80
|
||||||
|
instance_count: 2
|
||||||
|
instance_size_slug: professional-xs
|
||||||
|
name: example-service-name
|
||||||
|
routes:
|
||||||
|
- path: /
|
||||||
|
|
||||||
wildcard
|
|
||||||
zone
|
|
||||||
minimum_tls_version
|
|
||||||
domain
|
|
||||||
type
|
|
||||||
|
|
||||||
ingress
|
|
||||||
|
|
||||||
rules (array)
|
|
||||||
match
|
|
||||||
path
|
|
||||||
prefix
|
|
||||||
component
|
|
||||||
name
|
|
||||||
preserve_path_prefix
|
|
||||||
rewrite
|
|
||||||
redirect
|
|
||||||
uri
|
|
||||||
authority
|
|
||||||
port
|
|
||||||
scheme
|
|
||||||
redirect_code
|
|
||||||
cors
|
|
||||||
allow_headers (array)
|
|
||||||
expose_headers (array)
|
|
||||||
max_age
|
|
||||||
allow_credentials
|
|
||||||
allow_origins (array)
|
|
||||||
exact
|
|
||||||
prefix
|
|
||||||
regex
|
|
||||||
allow_methods (array)
|
|
||||||
|
|
||||||
databases (array)
|
|
||||||
|
|
||||||
engine
|
|
||||||
version
|
|
||||||
cluster_name
|
|
||||||
db_user
|
|
||||||
name
|
|
||||||
production
|
|
||||||
db_name
|
|
||||||
|
|
||||||
region
|
|
||||||
envs (array)
|
|
||||||
|
|
||||||
value
|
|
||||||
scope
|
|
||||||
type
|
|
||||||
key
|
|
||||||
|
|
||||||
alerts (array)
|
|
||||||
|
|
||||||
rule
|
|
||||||
disabled
|
|
||||||
operator
|
|
||||||
value
|
|
||||||
window
|
|
||||||
|
|
||||||
name
|
|
||||||
services (array)
|
|
||||||
|
|
||||||
health_check
|
|
||||||
period_seconds
|
|
||||||
timeout_seconds
|
|
||||||
success_threshold
|
|
||||||
failure_threshold
|
|
||||||
http_path
|
|
||||||
port
|
|
||||||
initial_delay_seconds
|
|
||||||
cors
|
|
||||||
allow_headers (array)
|
|
||||||
expose_headers (array)
|
|
||||||
max_age
|
|
||||||
allow_credentials
|
|
||||||
allow_origins (array)
|
|
||||||
exact
|
|
||||||
prefix
|
|
||||||
regex
|
|
||||||
allow_methods (array)
|
|
||||||
log_destinations (array)
|
|
||||||
name
|
|
||||||
papertrail
|
|
||||||
endpoint
|
|
||||||
datadog
|
|
||||||
endpoint
|
|
||||||
api_key
|
|
||||||
logtail
|
|
||||||
token
|
|
||||||
git
|
|
||||||
repo_clone_url
|
|
||||||
branch
|
|
||||||
github
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
build_command
|
|
||||||
envs (array)
|
|
||||||
value
|
|
||||||
scope
|
|
||||||
type
|
|
||||||
key
|
|
||||||
source_dir
|
|
||||||
instance_size_slug
|
|
||||||
http_port
|
|
||||||
routes (array)
|
|
||||||
path
|
|
||||||
preserve_path_prefix
|
|
||||||
internal_ports (array)
|
|
||||||
gitlab
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
alerts (array)
|
|
||||||
rule
|
|
||||||
disabled
|
|
||||||
operator
|
|
||||||
value
|
|
||||||
window
|
|
||||||
instance_count
|
|
||||||
name
|
|
||||||
image
|
|
||||||
registry_type
|
|
||||||
registry
|
|
||||||
repository
|
|
||||||
tag
|
|
||||||
deploy_on_push
|
|
||||||
enabled
|
|
||||||
dockerfile_path
|
|
||||||
run_command
|
|
||||||
environment_slug
|
|
||||||
|
|
||||||
static_sites (array)
|
|
||||||
|
|
||||||
cors
|
|
||||||
allow_headers (array)
|
|
||||||
expose_headers (array)
|
|
||||||
max_age
|
|
||||||
allow_credentials
|
|
||||||
allow_origins (array)
|
|
||||||
exact
|
|
||||||
prefix
|
|
||||||
regex
|
|
||||||
allow_methods (array)
|
|
||||||
catchall_document
|
|
||||||
index_document
|
|
||||||
gitlab
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
build_command
|
|
||||||
output_dir
|
|
||||||
github
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
environment_slug
|
|
||||||
error_document
|
|
||||||
git
|
|
||||||
repo_clone_url
|
|
||||||
branch
|
|
||||||
dockerfile_path
|
|
||||||
source_dir
|
|
||||||
envs (array)
|
|
||||||
value
|
|
||||||
scope
|
|
||||||
type
|
|
||||||
key
|
|
||||||
routes (array)
|
|
||||||
path
|
|
||||||
preserve_path_prefix
|
|
||||||
name
|
|
||||||
|
|
||||||
workers (array)
|
|
||||||
|
|
||||||
git
|
|
||||||
repo_clone_url
|
|
||||||
branch
|
|
||||||
github
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
run_command
|
|
||||||
source_dir
|
|
||||||
image
|
|
||||||
registry_type
|
|
||||||
registry
|
|
||||||
repository
|
|
||||||
tag
|
|
||||||
deploy_on_push
|
|
||||||
enabled
|
|
||||||
environment_slug
|
|
||||||
instance_size_slug
|
|
||||||
log_destinations (array)
|
|
||||||
name
|
|
||||||
papertrail
|
|
||||||
endpoint
|
|
||||||
datadog
|
|
||||||
endpoint
|
|
||||||
api_key
|
|
||||||
logtail
|
|
||||||
token
|
|
||||||
gitlab
|
|
||||||
repo
|
|
||||||
branch
|
|
||||||
deploy_on_push
|
|
||||||
dockerfile_path
|
|
||||||
build_command
|
|
||||||
envs (array)
|
|
||||||
value
|
|
||||||
scope
|
|
||||||
type
|
|
||||||
key
|
|
||||||
instance_count
|
|
||||||
alerts (array)
|
|
||||||
rule
|
|
||||||
disabled
|
|
||||||
operator
|
|
||||||
value
|
|
||||||
window
|
|
||||||
name
|
|
||||||
|
|||||||
Reference in New Issue
Block a user