-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.yml
36 lines (31 loc) · 1.35 KB
/
manifest.yml
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
# The manifest for the "app" service.
# Read the full specification for the "Load Balanced Web Service" type at:
# https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/
name: app
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: "/"
allowed_source_ips: ["165.124.160.0/21"]
# Configuration for your containers and service.
image:
build:
dockerfile: app/Dockerfile
context: ./
port: 5000
cpu: 256 # Number of CPU units for the task.
memory: 512 # Amount of memory in MiB used by the task.
count: 1 # Number of tasks that should be running in your service.
exec: true # Enable running commands in your container.
# Pass secrets from AWS Systems Manager (SSM) Parameter Store.
# Key = name of the environment variable, value = name of SSM parameter.
secrets:
MYSQL_HOST: /copilot/pitchfork/dev/secrets/mysql-host
MYSQL_PORT: /copilot/pitchfork/dev/secrets/mysql-port
MYSQL_USER: /copilot/pitchfork/dev/secrets/mysql-user
MYSQL_PASSWORD: /copilot/pitchfork/dev/secrets/mysql-password
MYSQL_DATABASE: /copilot/pitchfork/dev/secrets/mysql-database
AWS_ACCESS_KEY_ID: /copilot/pitchfork/dev/secrets/s3-access-key
AWS_SECRET_ACCESS_KEY: /copilot/pitchfork/dev/secrets/s3-password