Skip to content

Commit

Permalink
chore(docker): add example docker-compose.yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
kritish-dhaubanjar committed Oct 27, 2022
1 parent a0c41b5 commit 879d2cd
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docker-compose.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: "3.7"

services:
dynamodb-local:
image: amazon/dynamodb-local:latest
container_name: dynamodb-local
working_dir: /home/dynamodblocal
ports:
- 8000:8000
volumes:
- ./:/home/dynamodblocal/data
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"

dynamodb-dashboard:
container_name: dynamodb-dashboard
depends_on:
- dynamodb-local
build:
context: ./
dockerfile: Dockerfile
args:
PORT_ARG: 4567
HOST_ARG: 0.0.0.0
PREFIX_ARG: dynamodb
ports:
- 8080:4567
environment:
AWS_REGION: us-west-2
AWS_ENDPOINT: http://dynamodb-local:8000
AWS_ACCESS_KEY_ID: fakeMyKeyId
AWS_SESSION_TOKEN: fakeSessionToken
AWS_SECRET_ACCESS_KEY: fakeSecretAccessKey

14 changes: 14 additions & 0 deletions docker-compose.host.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.7"

services:
dynamodb-dashboard:
container_name: dynamodb-dashboard
image: kritishdhaubanjar/dynamodb-dashboard:latest
network_mode: host
environment:
AWS_REGION: us-west-2
AWS_ENDPOINT: http://0.0.0.0:8000
AWS_ACCESS_KEY_ID: fakeMyKeyId
AWS_SESSION_TOKEN: fakeSessionToken
AWS_SECRET_ACCESS_KEY: fakeSecretAccessKey

25 changes: 25 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: "3.7"

services:
dynamodb-local:
image: amazon/dynamodb-local:latest
container_name: dynamodb-local
working_dir: /home/dynamodblocal
ports:
- 8000:8000
volumes:
- ./:/home/dynamodblocal/data
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"

dynamodb-dashboard:
container_name: dynamodb-dashboard
image: kritishdhaubanjar/dynamodb-dashboard:latest
ports:
- 8080:4567
environment:
AWS_REGION: us-west-2
AWS_ENDPOINT: http://dynamodb-local:8000
AWS_ACCESS_KEY_ID: fakeMyKeyId
AWS_SESSION_TOKEN: fakeSessionToken
AWS_SECRET_ACCESS_KEY: fakeSecretAccessKey

0 comments on commit 879d2cd

Please sign in to comment.