-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
47 lines (47 loc) · 1.14 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
version: '3.8'
services:
dynamodb-local:
# command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"
# image: "amazon/dynamodb-local:latest"
# container_name: dynamodb-local
# ports:
# - "8000:8000"
# volumes:
# - dynamodb-data:/home/dynamodblocal/data
image: amazon/dynamodb-local
restart: unless-stopped
command: -jar DynamoDBLocal.jar -sharedDb -dbPath /opt/dynamodblocal
volumes:
- dynamodb_data:/opt/dynamodblocal
ports:
- "8000:8000"
user: root
admin:
build:
context: .
dockerfile: ddbadmin.Dockerfile
ports:
- 8001:8001
environment:
- DYNAMO_ENDPOINT=http://dynamodb-local:8000
- AWS_REGION=ap-south-1
- AWS_ACCESS_KEY_ID=local
- AWS_SECRET_ACCESS_KEY=local
depends_on:
- dynamodb-local
app:
build: .
volumes:
- "./app:/code"
ports:
- "5050:5050"
depends_on:
- dynamodb-local
environment:
- DYNAMODB_URL=http://dynamodb-local:8000
- DYNAMODB_REGION=ap-south-1
- DYNAMODB_ACCESS_KEY=local
- DYNAMODB_SECRET_KEY=local
volumes:
dynamodb_data:
external: true