|
| 1 | +# Migrating to the Karakeep Chrome Image |
| 2 | + |
| 3 | +Karakeep now publishes its own tested Chrome image instead of relying on the |
| 4 | +unmaintained Alpine Chrome image. If you maintain a custom Compose file, update |
| 5 | +the `chrome` service with the following diff: |
| 6 | + |
| 7 | +```diff |
| 8 | + services: |
| 9 | + chrome: |
| 10 | +- image: gcr.io/zenika-hub/alpine-chrome:124 |
| 11 | ++ image: ghcr.io/karakeep-app/karakeep-chrome:release |
| 12 | + restart: unless-stopped |
| 13 | ++ init: true |
| 14 | + command: |
| 15 | +- - --no-sandbox |
| 16 | + - --disable-gpu |
| 17 | + - --disable-dev-shm-usage |
| 18 | +- - --remote-debugging-address=0.0.0.0 |
| 19 | +- - --remote-debugging-port=9222 |
| 20 | + - --hide-scrollbars |
| 21 | + - --disable-blink-features=AutomationControlled |
| 22 | + - --window-size=1440,900 |
| 23 | +``` |
| 24 | + |
| 25 | +Removing the remote-debugging arguments is required. The new image's entrypoint |
| 26 | +starts Chrome on an internal port and forwards container port `9222`; overriding |
| 27 | +that port conflicts with the forwarding setup. The entrypoint also supplies |
| 28 | +`--no-sandbox`, so removing the duplicate Compose argument does not enable the |
| 29 | +Chromium sandbox. |
| 30 | + |
| 31 | +The connection used by Karakeep does not change: |
| 32 | + |
| 33 | +```yaml |
| 34 | +environment: |
| 35 | + BROWSER_WEB_URL: http://chrome:9222 |
| 36 | +``` |
| 37 | +
|
| 38 | +After editing the Compose file, pull and recreate the services: |
| 39 | +
|
| 40 | +```bash |
| 41 | +docker compose pull chrome |
| 42 | +docker compose up -d chrome |
| 43 | +``` |
| 44 | + |
| 45 | +The migration does not change Karakeep data or require a database migration. |
| 46 | +The `release` tag follows the browser image promoted for stable Karakeep |
| 47 | +deployments. To control browser upgrades independently, replace `release` with |
| 48 | +an immutable versioned tag from the |
| 49 | +[Karakeep Chrome package](https://github.com/karakeep-app/karakeep/pkgs/container/karakeep-chrome). |
0 commit comments