How to deal with persistent storage (e.g. databases) in Docker

前端 未结 14 1351
野的像风
野的像风 2020-11-22 11:54

How do people deal with persistent storage for your Docker containers?

I am currently using this approach: build the image, e.g. for PostgreSQL, and then start the c

14条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 12:02

    I recently wrote about a potential solution and an application demonstrating the technique. I find it to be pretty efficient during development and in production. Hope it helps or sparks some ideas.

    Repo: https://github.com/LevInteractive/docker-nodejs-example
    Article: http://lev-interactive.com/2015/03/30/docker-load-balanced-mongodb-persistence/

提交回复
热议问题