-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
50 lines (49 loc) · 1.33 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
version: '3'
services:
aws-sam-local:
image: xevo/aws-sam-local
command: local start-api --host 0.0.0.0 --port 3001 --docker-volume-basedir "$PWD/backend"
ports:
- '3001:3001'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./backend:/var/opt
moto:
build:
context: ./moto
dockerfile: Dockerfile
command: moto_server cognitoidentity -p 4001
ports:
- "4001:4001"
localstack:
image: localstack/localstack
ports:
- "4567-4583:4567-4583"
- "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}"
environment:
- SERVICES=dynamodb,dynamodbstreams,elasticsearch,s3,sns,sqs,ses
- DEBUG=${DEBUG- }
- DATA_DIR=${DATA_DIR- }
- PORT_WEB_UI=${PORT_WEB_UI- }
- LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR- }
- KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY- }
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "./data/tmp/localstack:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
command: npm start
volumes:
- './frontend:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- "3000:3000"
environment:
- NODE_ENV=development
depends_on:
- aws-sam-local
- localstack
- moto