-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (34 loc) · 966 Bytes
/
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
version: '3.8'
services:
dynamodb.testing:
image: amazon/dynamodb-local
ports:
- "8000:8000"
command: -jar DynamoDBLocal.jar -sharedDb -inMemory
working_dir: /home/dynamodblocal
expose:
- "8000"
dynamodb.local:
image: amazon/dynamodb-local
ports:
- "8000:8000"
# For having persistent data use the following:
# volumes:
# - ./db:/home/dynamodblocal/db
# command: -jar DynamoDBLocal.jar -sharedDb -dbPath /home/dynamodblocal/db
command: -jar DynamoDBLocal.jar -sharedDb -inMemory
working_dir: /home/dynamodblocal
expose:
- "8000"
dynamodb.admin:
image: aaronshaf/dynamodb-admin
ports:
- 8001:8001
environment:
# CAREFUL, don't use localhost but the container name!
DYNAMO_ENDPOINT: "http://dynamodb.local:8000"
AWS_REGION: "eu-west-3"
AWS_ACCESS_KEY_ID: local
AWS_SECRET_ACCESS_KEY: local
depends_on:
- dynamodb.local