diff --git a/docker-compose.build.yml b/docker-compose.build.yml new file mode 100644 index 00000000..f1c6730e --- /dev/null +++ b/docker-compose.build.yml @@ -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 + diff --git a/docker-compose.host.yml b/docker-compose.host.yml new file mode 100644 index 00000000..a9945c78 --- /dev/null +++ b/docker-compose.host.yml @@ -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 + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..45b0ac81 --- /dev/null +++ b/docker-compose.yml @@ -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 +