DEV Community

Discussion on: Docker and Dancer (Take 2)

Collapse
 
chrborup profile image
Christian Borup

You don't need your Dockerfile-db, it's easier to just pass set up the volume on the command line (or in docker-compose.yaml). Provided you are willing to rename your .dump to .sql...

docker ... -v $(pwd)/data:/docker-entrypoint-initdb.d ...

Would yield the same result.

Collapse
 
davorg profile image
Dave Cross

Excellent suggestion. Thank you; that works well.