RepositoryShellCHSwitzerland
AN

anyproto/any-sync-dockercompose

Deploy your own any-sync network with Docker Compose - self-host Anytype backend

967stars
138forks
18issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: any-sync

#1 Repository of the week

1
TINIX TRENDING·Topic: anytype

#1 Repository of the week

10
TINIX TRENDING·Topic: p2p

#10 Repository of the week

Docker Compose for any-sync

A self-hosted any-sync network, designed for personal use, review, or testing purposes.

[!IMPORTANT] This setup is suitable for personal self-hosted any-sync networks. For high-load production deployments, consider using the Puppet or Ansible modules.

[!WARNING] Before upgrading, read the Upgrade Guide.

Requirements

  • Docker with Compose plugin v2+
  • ~1 GB RAM available

Architecture

The stack runs the following services:

ServiceRoleDepends on
any-sync-coordinatorNetwork coordinator, manages spaces and membersMongoDB
any-sync-node ×3Document sync nodescoordinator
any-sync-filenodeFile storage nodecoordinator, MinIO, Redis
any-sync-consensusnodeConsensus for conflict resolutioncoordinator
netcheckPeriodic connectivity health monitorall nodes
MongoDBCoordinator state—
RedisFilenode index—
MinIOS3-compatible object storage for files—

Optional service: anytype-cli (commented out in docker-compose.yml) — HTTP/gRPC API server for automation.

Getting Started

  1. Clone the repository:

    git clone https://github.com/anyproto/any-sync-dockercompose.git
    cd any-sync-dockercompose
    
  2. Create your env file:

    cp .env.example .env
    

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

  3. Optionally fetch the latest compatible service versions:

    ./update-versions.sh
    

    This updates the ANY_SYNC_*_VERSION variables in .env from the Anytype API. Skip this step to use the pinned versions already in .env.example.

  4. Start:

    docker compose up -d
    # or: make start
    

    On first run this generates configs in ./etc/ and starts all services.

  5. Connect Anytype client: Upload ./etc/client.yml to the Anytype app as your self-hosted network config. See Anytype docs.

Configuration

Copy .env.example to .env and edit it directly. Common customizations:

# External IP(s) for clients outside localhost
EXTERNAL_LISTEN_HOSTS="1.2.3.4"

# Custom storage path (default: ./storage)
STORAGE_DIR="/mnt/data/any-sync"

# Per-daemon memory limit (default: 500M)
ANY_SYNC_DAEMONS_MEMORY_LIMIT=1G

To update service versions to the latest compatible set, run ./update-versions.sh.

Full reference: Configuration Wiki.

Quick Reference

make start      # Generate config and start all services
make stop       # Stop services (data preserved)
make restart    # Stop and start again
make logs       # Follow logs from all services
make pull       # Pull latest Docker images
make update     # pull + restart (rolling update)
make upgrade    # ⚠️  Full reset: removes containers and volumes, then starts fresh
make down       # Stop and remove containers (data preserved)
make clean      # ⚠️  docker system prune --all --volumes (removes all Docker data)
make cleanEtcStorage  # Remove generated ./etc/ configs and ./storage/

Documentation

Full guides are in the Wiki:

Contribution

Thank you for your desire to develop Anytype together!

❤️ This project and everyone involved in it is governed by the Code of Conduct.

🧑‍💻 Check out our contributing guide to learn about asking questions, creating issues, or submitting pull requests.

🫢 For security findings, please email security@anytype.io and refer to our security guide for more information.

🤝 Follow us on Github and join the Contributors Community.


Made by Any — a Swiss association 🇨🇭

Licensed under MIT.

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
anyproto/anytype-ts

Official Anytype client for MacOS, Linux, and Windows

9.2k
Nov 30, 2026
Repository
awesome-selfhosted/awesome-selfhosted

A list of Free Software network services and web applications which can be hosted on your own servers

342.5k
Nov 28, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryGo
fatedier/frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

110.9k
Nov 10, 2026
RepositorySvelte
open-webui/open-webui

User-friendly AI Interface (Supports Ollama, OpenAI API, ...)

160.1k
Dec 2, 2026
RepositoryRust
rustdesk/rustdesk

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

132.8k
Dec 2, 2026
RepositoryTypeScript
immich-app/immich

High performance self-hosted photo and video management solution.

120.6k
Dec 1, 2026
RepositoryJavaScript
louislam/uptime-kuma

A fancy self-hosted monitoring tool

95.1k
Nov 30, 2026
RepositoryGo
syncthing/syncthing

Open Source Continuous File Synchronization

91.1k
Dec 1, 2026