contribsys / faktory

Language-agnostic persistent background job server
https://contribsys.com/faktory/
Other
5.73k stars 227 forks source link

Persistent disk mount in docker container documentation #353

Closed robpingxu closed 3 years ago

robpingxu commented 3 years ago

I have contribsys/faktory image running on Google Compute Engine VM and was mounting a persistent disk according to the documentation for docker at: https://github.com/contribsys/faktory/wiki/Installation

The data wasn't persisting after a restart so I looked in the container and found the data sitting at /root/.faktory/db/faktory.rdb

Swapped the mount to /root/.faktory and it seems to be working.

mperham commented 3 years ago

If you run Faktory in production via “-e production”, it will persist to /var/lib/faktory.

robpingxu commented 3 years ago

Ah, I see. So I need to set that as an additional container arg in GCE.