-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
31 lines (30 loc) · 1.02 KB
/
docker-compose.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
---
secrets:
cyhy_config:
file: ./cyhy-mine.toml
services:
build_deployment_package:
build: .
# This uses the value of the LAMBDA_TAG environment variable from
# the invoking environment but falls back to a default value.
entrypoint: /opt/build_artifact.sh
environment:
# This uses the value of the BUILD_FILE_NAME environment variable
# from the invoking environment but falls back to a default value.
- BUILD_FILE_NAME=${BUILD_FILE_NAME:-lambda_build.zip}
image: cisagov/kevsync_lambda:${LAMBDA_TAG:-latest}
volumes:
- ./src/build_artifact.sh:/opt/build_artifact.sh
- .:/var/task/output
run_lambda_locally:
build: .
# This uses the value of the LAMBDA_TAG environment variable from
# the invoking environment but falls back to a default value.
environment:
- CYHY_CONFIG_PATH=/run/secrets/cyhy.toml
image: cisagov/kevsync_lambda:${LAMBDA_TAG:-latest}
ports:
- "9000:8080"
secrets:
- source: cyhy_config
target: cyhy.toml