-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.36 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.7'
x-environment: &x-environment
BACKEND_BUCKET:
BACKEND_REGION:
BACKEND_DYNAMODB_TABLE:
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:
AWS_DEFAULT_REGION:
TF_VAR_lambda_exec_arn:
TF_VAR_apigw_id:
TF_VAR_apigw_root_resource_id:
TF_VAR_apigw_execution_arn:
TF_VAR_lambda_s3_bucket:
TF_VAR_aws_username:
TF_VAR_apigw_stage:
TF_VAR_lambda_version:
TF_VAR_environment_variables:
ALLOW_ORIGINS:
services:
test:
image: cors-proxy
build:
context: .
dockerfile: Dockerfile.node
cache_from:
- cors-proxy
- quay.io/nyulibraries/cors-proxy
command: yarn test-and-report
environment:
COVERALLS_REPO_TOKEN:
# volumes:
# - .:/app
fn_create:
image: cors-proxy-create
build:
context: .
dockerfile: Dockerfile.deploy
environment:
<<: *x-environment
entrypoint: ["./create.sh"]
fn_destroy:
image: cors-proxy-destroy
build:
context: .
dockerfile: Dockerfile.deploy
environment:
<<: *x-environment
entrypoint: ["./destroy.sh"]
build_lambda:
image: cors-proxy-build
build:
context: .
dockerfile: Dockerfile.node
args:
production: "true"
command: sh -c 'mkdir dist; cat .lambdafiles | xargs zip -r -9 -q ./dist/cors-proxy.zip'
labels:
- 'nyulibraries.app=cors-proxy'