forked from macai-project/exercise-backend-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
80 lines (75 loc) · 1.76 KB
/
docker-compose.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3"
services:
localstack:
image: localstack/localstack:latest
environment:
- DISABLE_CORS_CHECKS=1
- LAMBDA_DOCKER_NETWORK=macai_network
- DEBUG=1
- DEFAULT_REGION=eu-west-1
- DATA_DIR=/tmp/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
- HOST_TMP_FOLDER=${TMPDIR}
ports:
- "4566:4566"
volumes:
- ".:/root/data:z"
- "/var/run/docker.sock:/var/run/docker.sock:z"
networks:
- macai_network
setup-resources:
image: mesosphere/aws-cli
volumes:
- ./dev_env:/project/dev_env
- ./bin:/project/bin
environment:
- AWS_ACCESS_KEY_ID=dummyaccess
- AWS_SECRET_ACCESS_KEY=dummysecret
- AWS_DEFAULT_REGION=us-east-1
entrypoint: bin/entrypoint.setup.sh
networks:
- macai_network
depends_on:
- localstack
lambda:
build:
context: .
dockerfile: docker/Dockerfile
depends_on:
- setup-resources
environment:
- LOG_LEVEL=debug
- LOG_COLORS=true
- SENTRY_DSN=
- SENTRY_SAMPLING_RATE=1.0
- NODE_ENV=test
- AWS_EVENTBRIDGE_REGION=eu-west-1
- AWS_EVENTBRIDGE_EVENTBUS=default
- FRAMEWORK_LOGS=true
tty: true
ports:
- 8080:8080
networks:
- macai_network
volumes:
- ~/.aws:/root/.aws:z
- ~/.gitconfig:/root/.gitconfig:z
- ~/.ssh:/.ssh:z
- ./src:/var/task/src:z
test-lambda:
build:
context: .
dockerfile: docker/Dockerfile.test
depends_on:
- localstack
environment:
- NODE_ENV=development
tty: true
networks:
- macai_network
volumes:
- ./__integration_tests__:/app/__integration_tests__:z
networks:
macai_network:
external: false
driver: bridge