-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (32 loc) · 862 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (32 loc) · 862 Bytes
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
services:
app:
build:
context: .
dockerfile: Dockerfile
image: ffleandro/node-typescript-serverless-example-service:latest
command: npm run dev
ports:
- ${PORT}:${PORT}
depends_on:
- dynamodb
links:
- dynamodb
environment:
COGNITO_REGION: ${COGNITO_REGION}
COGNITO_POOL_ID: ${COGNITO_POOL_ID}
DYNAMODB_REGION: ${DYNAMODB_REGION}
DYNAMODB_ENDPOINT: ${DYNAMODB_ENDPOINT}
AWS_SDK_LOAD_CONFIG: 1
volumes:
- $HOME/.aws:/root/.aws:ro
dynamodb:
image: amazon/dynamodb-local
container_name: dynamodb-local
hostname: dynamodb
restart: always
volumes:
- ./my-dynamodb-data:/home/dynamodblocal/data
working_dir: /home/dynamodblocal
ports:
- 8000:8000
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath /home/dynamodblocal/data/"