sixeyed / diamol

Code samples for the book "Learn Docker in a Month of Lunches"
https://www.manning.com/books/learn-docker-in-a-month-of-lunches
Creative Commons Attribution Share Alike 4.0 International
497 stars 263 forks source link

Ch06-BindMount-App/config #11

Open eliassal opened 4 years ago

eliassal commented 4 years ago

Elton, When you create the todo-configured container in CH06, you mount a volume so you can make in read-only mode, overriding configuration which leads to more verbose logging which works fine but database is written to C:data in the container only. How can we modify/change syntax of the command to mount the 2 volumes, one for the config in readonly mode, 2nd for C:Dat

docker container run --name todo-configured -d -p 8013:80 --mount
type=bind,source=$source,target=$target,readonly diamol/ch06-todo-list