A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
services:
web:
build:
dockerfile: docker/Dockerfile
context: ../../
target: aio
# Reuse the layers (deps install, monolith, ...) that the docker workflow
# pushes from main. The checked-out source is still what gets built; only
# unchanged layers are reused. The cache is public so that it's readable
# without credentials (e.g. from fork PRs). If it's unavailable, buildkit
# just warns and builds from scratch.
cache_from:
- type=registry,ref=ghcr.io/karakeep-app/karakeep-build-cache:aio-amd64
restart: unless-stopped
ports:
- "${KARAKEEP_PORT:-3000}:3000"
environment:
DATA_DIR: /tmp
DB_WAL_MODE: "true"
NEXTAUTH_SECRET: secret
NEXTAUTH_URL: http://localhost:${KARAKEEP_PORT:-3000}
MEILI_MASTER_KEY: dummy
MEILI_ADDR: http://meilisearch:7700
BROWSER_WEB_URL: http://chrome:9222
CRAWLER_NUM_WORKERS: 6
CRAWLER_ALLOWED_INTERNAL_HOSTNAMES: nginx
CRAWLER_STORE_PDF: "true"
CRAWLER_VIDEO_DOWNLOAD: "true"
CRAWLER_VIDEO_DOWNLOAD_MAX_SIZE: -1
OPENAI_API_KEY: aimock-test-key
OPENAI_BASE_URL: http://aimock:4010/v1
EMBEDDING_DIMENSIONS: 384
EMBEDDING_ENABLE_AUTO_INDEXING: "true"
INFERENCE_ENABLE_AUTO_SUMMARIZATION: "true"
meilisearch:
image: getmeili/meilisearch:v1.55.0
restart: unless-stopped
ports:
- "${MEILI_PORT:-7700}:7700"
environment:
MEILI_NO_ANALYTICS: "true"
MEILI_MASTER_KEY: dummy
chrome:
image: ${KARAKEEP_CHROME_IMAGE:-karakeep-chrome:e2e}
build:
context: ../..
dockerfile: docker/chrome/Dockerfile
restart: unless-stopped
init: true
command:
- --disable-gpu
- --disable-dev-shm-usage
- --hide-scrollbars
- --disable-blink-features=AutomationControlled
- --window-size=1440,900
nginx:
image: nginx:alpine
restart: unless-stopped
volumes:
- ./setup/html:/usr/share/nginx/html
- ./setup/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
garage:
image: dxflrs/garage:v2.3.0
restart: unless-stopped
ports:
- "9000:3900"
environment:
# Fixed credentials for local tests only.
GARAGE_DEFAULT_ACCESS_KEY: GK0123456789abcdef0123456789abcdef
GARAGE_DEFAULT_SECRET_KEY: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
GARAGE_DEFAULT_BUCKET: karakeep-test
command: /garage server --single-node --default-bucket
volumes:
- ../../docker/garage/garage.toml:/etc/garage.toml:ro
- garage_data:/data
healthcheck:
test: ["CMD", "/garage", "bucket", "info", "karakeep-test"]
interval: 1s
timeout: 5s
retries: 30
aimock:
image: ghcr.io/copilotkit/aimock:latest
restart: unless-stopped
ports:
- "${AIMOCK_PORT:-4010}:4010"
volumes:
- ./setup/aimock:/fixtures:ro
command:
- --fixtures
- /fixtures
- --host
- 0.0.0.0
healthcheck:
test:
- CMD
- wget
- --spider
- -q
- http://127.0.0.1:4010/health
interval: 5s
timeout: 3s
retries: 20
volumes:
garage_data: