v1.102.0 ⚠️ Breaking Changes (OPT-IN ONLY) CautionFor people always pulling the latest compose file, this is a breaking change! Disregarding the notes will result in (temporary) data loss! Backgrou...
Pretty simple to switch (if you have a little docker experience). Create a folder (e.g. ./postgres), add the folder as a volume in the postgres portion of the compose file (maybe something like /db), then run just the database with newly mounted folder, shell in, and copy everything from the Postgres folder to this new folder. After that, swap mounts so the new folder is used as Postgres db and you’re good. If something went wrong, the pgdata volume is still there to switch back to.
Pretty simple to switch (if you have a little docker experience). Create a folder (e.g.
./postgres
), add the folder as a volume in the postgres portion of the compose file (maybe something like/db
), then run just the database with newly mounted folder, shell in, and copy everything from the Postgres folder to this new folder. After that, swap mounts so the new folder is used as Postgres db and you’re good. If something went wrong, thepgdata
volume is still there to switch back to.