thankful-thailand-63500
05/11/2023, 5:30 PMversion: '3.7'
services:
dynamodb:
image: amazon/dynamodb-local
container_name: my-dynamodb
hostname: dynamodb
restart: always
volumes:
- ./my-dynamodb-data:/home/dynamodblocal/data
ports:
- 8100:8000
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath /home/dynamodblocal/data/"
i run my docker compose and i get the following:
Attaching to my-dynamodb
my-dynamodb | Initializing DynamoDB Local with the following configuration:
my-dynamodb | Port: 8000
my-dynamodb | InMemory: false
my-dynamodb | DbPath: /home/dynamodblocal/data/
my-dynamodb | SharedDb: true
my-dynamodb | shouldDelayTransientStatuses: false
my-dynamodb | CorsParams: null
but when i try to connect i get this:
my-dynamodb | May 11, 2023 2:41:59 PM com.almworks.sqlite4java.Internal log
my-dynamodb | WARNING: [sqlite] cannot open DB[1]: com.almworks.sqlite4java.SQLiteException: [14] unable to open database file
my-dynamodb | May 11, 2023 2:41:59 PM com.almworks.sqlite4java.Internal log
my-dynamodb | SEVERE: [sqlite] SQLiteQueue[shared-local-instance.db]: error running job queue
my-dynamodb | com.almworks.sqlite4java.SQLiteException: [14] unable to open database file
it seems that the DB is not getting created in the my-dynamodb-data
directory.