muchobien / pocketbase-docker

Pocketbase docker image
345 stars 59 forks source link

How to add hooks #20

Closed yfram closed 8 months ago

yfram commented 9 months ago

Hi, This Docker image was a lifesaver, so thank you. This may be a dumb question but I'm a bit of a noob to this, how do I add pb hooks using this image? Iv'e tried just mounting it as a volume to /pb_hooks but that does't seem to work. Thanks!

yfram commented 9 months ago

Was able to solve this in the end by cloning the repo and changing the last line in the dockerfile to: ENTRYPOINT ["/usr/local/bin/pocketbase", "serve", "--http=0.0.0.0:8090", "--dir=/pb_data", "--publicDir=/pb_public", "--hooksDir=/pb_hooks"]