m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.96k stars 449 forks source link

Preserve changes #223

Closed alanmilinovic closed 1 year ago

alanmilinovic commented 1 year ago

Is it possible to preserve settings made in browser images. For example if I enable bookmarks and add some bookmarks. After updating neko and creating container with "up" command all my bookmarks are gone.

m1k1o commented 1 year ago

Yes, you need to mount browser profile as volume. That is /home/neko/.config/google-chrome for google chrome and similarly for others: image

m1k1o commented 1 year ago

Added to docs. https://neko.m1k1o.net/#/getting-started/?id=want-to-preserve-browser-data-between-restarts

alanmilinovic commented 1 year ago

I just tried but I get only black screen?

alanmilinovic commented 1 year ago

My configuration is.

volumes:
      - ${PWD}/data:/home/neko/.config/google-chrome
      - ${PWD}/policies.json:/etc/opt/chrome/policies/managed/policies.json

and in policy file

  "DefaultCookiesSetting": 1,
  "RestoreOnStartup": 1,
alanmilinovic commented 1 year ago

Ok, figured out, it was folder permissions.