Skip to content

developmentforpeople/anytype-docker

 
 

Repository files navigation

any-docker

⚠️ Note: this project is "work in progress" and is not yet ready for production use. It's actually not yet even ready for development use ;)

Community-maintained dockerized all-in-one instance of an anytype node.

Aim: provide a simple to use all-in-one docker image that runs an Anytype node and required infrastructure for development and testing.

  • mongodb
  • minio (s3 storage)
  • redis
  • any-heart
  • any-sync-coordinator
  • any-sync-node
  • any-sync-filenode

Secondly, we want to offer a simple to use yet customizable option with just the Anytype "any-sync" and middleware infrastructure while running your own supporting infrastructure (mongodb, s3 storage, redis).

  • any-heart
  • any-sync-coordinator
  • any-sync-node
  • any-sync-filenode

Build nodes

git clone https://github.com/SamBouwer/any-docker
cd any-docker
make

Run nodes

Before you run your anytype node container, make sure you have mongo, s3 storage, and redis running in a docker network, and connect your anytype node container to that same network. For example:

docker network create anytype-node_default

You can run the nodes using the docker run command:

docker run --name any-docker --network=anytype-node_default any-sync-docker:0.33.3

Alternatively, you can run the node along with the required infrastructure in Docker compose using the docker-compose-example.yaml and .evn.example files.

Build clients

Contribute

I'm building a Dockerfile based on the instructions as posted here: https://tech.anytype.io/how-to/self-hosting

As building Anytype nodes and clients from source for selfhosting is new, and I am personally new to building docker images, any help is welcome!

⚠️ Note: You will find many Id's and Keys in this repo, but those are often changing and only exposed locally on my machine, so its of little use to you :)

Disclaimer

I am not part of the Anytype team.

TODO

  • Improve documentation how to build and run a node
  • Add docker run and docker-compose.yaml examples
  • How to build, distribute and run clients (Windows, Android)
  • Split monolith Docker image to allow BYOI (bring your own infra; s3, mongodo, redis)

About

Dockerized all-in-one instance of an anytype node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 49.2%
  • Shell 29.9%
  • Makefile 20.9%