5 ms·
The post mentions losing database data when doing a "rm". Couldn't you set a volume parameter on the postgres container (to /var/lib/postgres or wherever data i
by kylek 12y ago
The post mentions losing database data when doing a "rm". Couldn't you set a volume parameter on the postgres container (to /var/lib/postgres or wherever data is stored) to prevent that? Or am I missing something?
- rackninja 12y agoYes you could since docker-compose(aka fig) supports volumes. Or just run a database on another machine/remote service and connect to it.