File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ # ddev-generated
1
2
version : ' 3.6'
2
3
services :
3
4
dynamodb :
4
5
container_name : " ddev-${DDEV_SITENAME}-dynamodb"
5
6
hostname : ${DDEV_SITENAME}-dynamodb
6
7
image : amazon/dynamodb-local:latest
8
+ # When mounting a volume and using -dbPath DynamoDb is crashing. Run as root.
9
+ # @see https://stackoverflow.com/questions/45850688/unable-to-open-local-dynamodb-database-file-after-power-outage
10
+ user : root
7
11
ports :
8
12
- " 8000:8000"
9
- command : [ "-jar", " DynamoDBLocal.jar", "-sharedDb" ]
13
+ command : " -jar DynamoDBLocal.jar -dbPath ./databases "
10
14
labels :
11
15
com.ddev.site-name : ${DDEV_SITENAME}
12
16
com.ddev.approot : $DDEV_APPROOT
13
17
volumes :
14
- - dynamodb:/var/dynamodb
18
+ - " dynamodb:/home/dynamodblocal/databases "
15
19
- " .:/mnt/ddev_config"
20
+ working_dir : /home/dynamodblocal
16
21
17
22
volumes :
18
23
dynamodb :
You can’t perform that action at this time.
0 commit comments