# Run: docker compose up -d # Pair: docker compose exec notecraft-sync nc-server pair services: notecraft-sync: image: ghcr.io/abduznik/notecraft-sync:latest # Prefer building locally? Replace `image:` with: build: . container_name: notecraft-sync restart: unless-stopped ports: # Bind to localhost only when a reverse proxy runs on the same host: # - "127.0.0.1:8787:8787" - "8787:8787" volumes: - notecraft-data:/data # SQLite database + content-addressed blobs environment: NC_MAX_BLOB_BYTES: "67108864" # 64 MiB per attachment NC_PAIRING_TTL_SECS: "600" # lifetime of the token printed at first start healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8787/healthz"] interval: 30s timeout: 3s retries: 3 volumes: notecraft-data: