2024-01-31 00:23:46 +00:00
|
|
|
# The manifest for the "capture" service.
|
|
|
|
# Read the full specification for the "Load Balanced Web Service" type at:
|
|
|
|
# https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/
|
|
|
|
|
|
|
|
# Your service name will be used in naming your resources like log groups, ECS services, etc.
|
|
|
|
name: capture
|
|
|
|
type: Load Balanced Web Service
|
|
|
|
|
|
|
|
# Distribute traffic to your service.
|
|
|
|
http:
|
|
|
|
# Requests to this path will be forwarded to your service.
|
|
|
|
# To match all requests you can use the "/" path.
|
|
|
|
path: '/'
|
|
|
|
# You can specify a custom health check path. The default is "/".
|
|
|
|
# healthcheck: '/'
|
|
|
|
|
|
|
|
# Configuration for your containers and service.
|
|
|
|
image:
|
|
|
|
# Docker build arguments. For additional overrides: https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/#image-build
|
|
|
|
build: capture/Dockerfile
|
|
|
|
# Port exposed through your container to route traffic to it.
|
|
|
|
port: 5678
|
|
|
|
|
2024-02-03 23:49:34 +00:00
|
|
|
cpu: 2048 # Number of CPU units for the task.
|
|
|
|
memory: 4096 # Amount of memory in MiB used by the task.
|
2024-01-31 00:23:46 +00:00
|
|
|
platform: linux/x86_64 # See https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/#platform
|
|
|
|
count:
|
|
|
|
range:
|
|
|
|
min: 1 # Minimum number of tasks to run for the service.
|
|
|
|
max: 3 # Maximum number of tasks to run for the service.
|
|
|
|
cooldown:
|
|
|
|
in: 60s # Number of seconds to wait before scaling up.
|
|
|
|
out: 60s # Number of seconds to wait before scaling down.
|
2024-02-04 02:14:54 +00:00
|
|
|
response_time: 3s
|
2024-01-31 00:23:46 +00:00
|
|
|
exec: true # Enable running commands in your container.
|
|
|
|
network:
|
|
|
|
connect: true # Enable Service Connect for intra-environment traffic between services.
|
|
|
|
|
|
|
|
# storage:
|
|
|
|
# readonly_fs: true # Limit to read-only access to mounted root filesystems.
|
|
|
|
|
|
|
|
# Optional fields for more advanced use-cases.
|
|
|
|
#
|
|
|
|
variables: # Pass environment variables as key value pairs.
|
|
|
|
CAPTURE_URL: https://stacker.news/
|
2024-02-04 02:14:54 +00:00
|
|
|
MAX_PAGES: 10
|
|
|
|
TIMEOUT: 3000
|
2024-01-31 00:23:46 +00:00
|
|
|
|
|
|
|
#secrets: # Pass secrets from AWS Systems Manager (SSM) Parameter Store.
|
|
|
|
# GITHUB_TOKEN: GITHUB_TOKEN # The key is the name of the environment variable, the value is the name of the SSM parameter.
|
|
|
|
|
|
|
|
# You can override any of the values defined above by environment.
|
|
|
|
#environments:
|
|
|
|
# test:
|
|
|
|
# count: 2 # Number of tasks to run for the "test" environment.
|
|
|
|
# deployment: # The deployment strategy for the "test" environment.
|
|
|
|
# rolling: 'recreate' # Stops existing tasks before new ones are started for faster deployments.
|