|
|
|
|
|
by austinjp
3537 days ago
|
|
This is interesting. I'd been considering mounting drives for persistence of stateful data from containers. Let's say I want to run a Wordpress hosting service. In my ideal world, I deploy an "immutable" container for each customer, i.e. everyone gets an identical container with Wordpress, Nginx, MySQL etc. So what to do with state info, like configs and the MySQL data files? I'm thinking of mounting a drive at the same point inside each container e.g. /mnt/data/ and /mnt/config/ or similar. This way the containers can all be identical at time of deployment, and I can manage the volumes that attach to those mount points using some dedicated tool/process. This is all still on the drawing-board... but what you've said here seems to suggest this approach should work. Or have I optimistically misinterpreted what you've said? :) |
|