selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

AnyType logo

Self-host AnyType

v8.0.1

Docker Compose stack to self-host Anytype's sync backend

ReleaseOpen SourceMIT
Updated11 hours ago
LanguageShell
Setup difficultyModerate
Stars
954
RAM
~1 GB RAM available
Ports
1001 (any-sync-node-1 TCP transport), 1011 (any-sync-node-1 QUIC/UDP transport), 1002 (any-sync-node-2 TCP transport), 1012 (any-sync-node-2 QUIC/UDP transport), 1003 (any-sync-node-3 TCP transport), 1013 (any-sync-node-3 QUIC/UDP transport), 1004 (any-sync-coordinator TCP transport), 1014 (any-sync-coordinator QUIC/UDP transport), 1005 (any-sync-filenode TCP transport), 1015 (any-sync-filenode QUIC/UDP transport)
Install with Docker Compose

What is AnyType?

any-sync-dockercompose is a Docker Compose project for self-hosting the any-sync network, the P2P synchronization backend behind Anytype. It deploys a coordinator, three sync nodes, a file node, a consensus node, and a connectivity monitor, all backed by MongoDB for metadata, Redis for caching, and Garage (S3-compatible) for encrypted file storage. The stack generates a client configuration file (client.yml) that you import into Anytype desktop or mobile apps to use your own sync infrastructure. It targets personal use, review, or testing; for high-load production the project recommends Puppet or Ansible modules. The project is MIT-licensed and maintained by the Any Association.

Should you self-host AnyType?

AnyType scores 57/100 on selfhost.directory (how scoring works) and ranks #5 of 15 in File Sync. It has 954 GitHub stars.

It shipped 11 stable releases in the past year. The latest, v8.0.1, came out on 25 September 2026. New versions land roughly every 3 weeks.

Setup is moderate: expect some configuration beyond a single command. It is MIT-licensed and written mostly in Shell.

Its closest alternative on selfhost.directory is Syncthing (90/100, 89 834 stars). It scores higher overall, so compare the two before you pick. See AnyType vs Syncthing side by side.

Features

  • Automated config generation
  • Encrypted File Storage
  • External S3 support
  • Health Monitoring
  • MinIO to Garage migration
  • Multi-node architecture
  • Non-Root User SupportLinux only
  • Optional automation APIOptional, commented out by default
  • P2P synchronization
  • Self-hosted Anytype backend
  • Version management script

AnyType README

How to install AnyType

Install AnyType with Docker Compose

Environment variables
EXTERNAL_LISTEN_HOSTS, STORAGE_DIR, ANY_SYNC_DAEMONS_MEMORY_LIMIT, and many service version/config vars

git clone https://github.com/anyproto/any-sync-dockercompose.git cd any-sync-dockercompose cp .env.example .env

Edit .env for customizations (e.g. EXTERNAL_LISTEN_HOSTS)

./update-versions.sh # optional docker compose up -d

or: make start

Primary installation method; requires Docker with Compose plugin v2+

How to configure AnyType

  • ANY_SYNC_CONSENSUSNODE_PORT1006TCP port for any-sync-consensusnode

    TCP port for any-sync-consensusnode

  • ANY_SYNC_CONSENSUSNODE_QUIC_PORT1016QUIC/UDP port for any-sync-consensusnode

    QUIC/UDP port for any-sync-consensusnode

  • ANY_SYNC_CONSENSUSNODE_VERSIONv0.13.0Version of any-sync-consensusnode Docker image

    Version of any-sync-consensusnode Docker image

  • ANY_SYNC_COORDINATOR_DEFAULT_LIMITS_SHARED_SPACES_LIMIT1000Default shared spaces limit

    Default shared spaces limit

  • ANY_SYNC_COORDINATOR_DEFAULT_LIMITS_SPACE_MEMBERS_READ1000Default per-space read member limit

    Default per-space read member limit

  • ANY_SYNC_COORDINATOR_DEFAULT_LIMITS_SPACE_MEMBERS_WRITE1000Default per-space write member limit

    Default per-space write member limit

  • ANY_SYNC_COORDINATOR_PORT1004TCP port for any-sync-coordinator

    TCP port for any-sync-coordinator

  • ANY_SYNC_COORDINATOR_QUIC_PORT1014QUIC/UDP port for any-sync-coordinator

    QUIC/UDP port for any-sync-coordinator

  • ANY_SYNC_COORDINATOR_VERSIONv0.13.0Version of any-sync-coordinator Docker image

    Version of any-sync-coordinator Docker image

  • ANY_SYNC_DAEMONS_MEMORY_LIMIT500MMemory limit applied to each any-sync daemon container

    Memory limit applied to each any-sync daemon container

  • ANY_SYNC_FILENODE_DEFAULT_LIMIT1099511627776Default per-account storage quota in bytes (1 TiB)

    Default per-account storage quota in bytes (1 TiB)

  • ANY_SYNC_FILENODE_PORT1005TCP port for any-sync-filenode

    TCP port for any-sync-filenode

  • ANY_SYNC_FILENODE_QUIC_PORT1015QUIC/UDP port for any-sync-filenode

    QUIC/UDP port for any-sync-filenode

  • ANY_SYNC_FILENODE_VERSIONv0.13.0Version of any-sync-filenode Docker image

    Version of any-sync-filenode Docker image

  • ANY_SYNC_NODE_1_PORT1001TCP port for any-sync-node-1

    TCP port for any-sync-node-1

  • ANY_SYNC_NODE_1_QUIC_PORT1011QUIC/UDP port for any-sync-node-1

    QUIC/UDP port for any-sync-node-1

  • ANY_SYNC_NODE_2_PORT1002TCP port for any-sync-node-2

    TCP port for any-sync-node-2

  • ANY_SYNC_NODE_2_QUIC_PORT1012QUIC/UDP port for any-sync-node-2

    QUIC/UDP port for any-sync-node-2

  • ANY_SYNC_NODE_3_PORT1003TCP port for any-sync-node-3

    TCP port for any-sync-node-3

  • ANY_SYNC_NODE_3_QUIC_PORT1013QUIC/UDP port for any-sync-node-3

    QUIC/UDP port for any-sync-node-3

  • ANY_SYNC_NODE_VERSIONv0.13.1Version of any-sync-node Docker image

    Version of any-sync-node Docker image

  • ANY_SYNC_TOOLS_VERSIONlatestVersion of any-sync-tools (netcheck) Docker image

    Version of any-sync-tools (netcheck) Docker image

  • ANYTYPE_CLI_ACCOUNT_NAMEanytype-botOptional anytype-cli bot account name

    Optional anytype-cli bot account name

  • ANYTYPE_CLI_API_PORT31012Optional anytype-cli HTTP API port

    Optional anytype-cli HTTP API port

  • ANYTYPE_CLI_GRPC_PORT31010Optional anytype-cli gRPC port

    Optional anytype-cli gRPC port

  • ANYTYPE_CLI_GRPC_WEB_PORT31011Optional anytype-cli gRPC-Web port

    Optional anytype-cli gRPC-Web port

  • ANYTYPE_CLI_VERSIONlatestVersion of anytype-cli Docker image (optional)

    Version of anytype-cli Docker image (optional)

  • AWS_ACCESS_KEY_IDany_sync_access_keyS3 access key ID for Garage

    S3 access key ID for Garage

  • AWS_SECRET_ACCESS_KEYany_sync_secret_keyS3 secret access key for Garage

    S3 secret access key for Garage

  • EXTERNAL_LISTEN_HOSTS127.0.0.1External IP(s) for clients outside localhost (space-separated)

    External IP(s) for clients outside localhost (space-separated)

  • GARAGE_RPC_SECRET6b6579206f6e6c792075736564206c6f63616c6c7920627920612073696e676cGarage cluster RPC secret (64 hex chars)

    Garage cluster RPC secret (64 hex chars)

  • GARAGE_VERSIONv2.3.0Garage S3-compatible storage Docker image version

    Garage S3-compatible storage Docker image version

  • MINIO_LEGACY_IMAGEpgsty/minio:RELEASE.2026-08-04T00-00-00ZMinIO legacy image for one-off migration (no longer in running stack)

    MinIO legacy image for one-off migration (no longer in running stack)

  • MONGO_1_PORT27001MongoDB replica set port

    MongoDB replica set port

  • MONGO_VERSION7.0.28MongoDB Docker image version

    MongoDB Docker image version

  • RCLONE_VERSION1.71.1Rclone version for MinIO to Garage migration

    Rclone version for MinIO to Garage migration

  • REDIS_MAXMEMORY256mbRedis max memory limit

    Redis max memory limit

  • REDIS_PORT6379Redis port

    Redis port

  • REDIS_VERSION7.2.0-v6Redis Stack Server Docker image version

    Redis Stack Server Docker image version

  • S3_BUCKETany-sync-filesS3 bucket name for file storage

    S3 bucket name for file storage

  • S3_ENDPOINThttp://garage:3900Internal address of the S3 service (Garage)

    Internal address of the S3 service (Garage)

  • S3_LEGACY_BUCKETminio-bucketName of the old MinIO bucket for migration

    Name of the old MinIO bucket for migration

  • S3_REGIONus-east-1S3 region

    S3 region

  • STORAGE_DIR./storageHost path where all service data volumes are persisted

    Host path where all service data volumes are persisted

AnyType releases & version history

More in File Sync

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…