-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.35 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
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
version: '2'
services:
ci:
build: .
environment:
NPM_CONFIG_CACHE: /tmp/npm-cache
volumes:
- .:/app
- node-modules:/app/node_modules
- npm-cache:/tmp/npm-cache
working_dir: /app
dev-runtime:
build: .
environment:
NPM_CONFIG_CACHE: /tmp/npm-cache
AWS_LAMBDA_RUNTIME_API: runtime-api:3000
volumes:
- .:/app
- node-modules:/app/node_modules
- npm-cache:/tmp/npm-cache
working_dir: /app
command: auto/dev-runtime-cmd
networks:
internal:
depends_on:
- runtime-api
dev-runtime-docker:
build: test
environment:
AWS_LAMBDA_FUNCTION_NAME: test-function-name
AWS_LAMBDA_FUNCTION_VERSION: test-function-version
AWS_LAMBDA_FUNCTION_MEMORY_SIZE: 128
AWS_LAMBDA_LOG_GROUP_NAME: test-log-group-name
AWS_LAMBDA_LOG_STREAM_NAME: test-log-stream-name
AWS_LAMBDA_RUNTIME_API: runtime-api:3000
networks:
internal:
depends_on:
- runtime-api
runtime-api:
image: node:16.0.0-buster-slim
environment:
NPM_CONFIG_CACHE: /tmp/npm-cache
volumes:
- .:/app
- node-modules:/app/node_modules
- npm-cache:/tmp/npm-cache
working_dir: /app
command: sh -c "npm install && node runtime-api/server"
networks:
internal:
networks:
internal:
volumes:
node-modules:
npm-cache: