My docker compose file has two containers and looks like this
version: \'3\' services: dynamodb: image: amazon/dynamodb-local ports:
You can try this docker-compose config:
version: '3' volumes: dynamodb_data: services: dynamodb: image: amazon/dynamodb-local command: -jar DynamoDBLocal.jar -sharedDb -dbPath /home/dynamodblocal volumes: - dynamodb_data:/home/dynamodblocal ports: - "8000:8000"