A tool to quickly start collaborating to the bitxenia wiki.
It uses docker to run a collaborator astrawiki node and a collaborator ipfs-cluster node to collab with the astrawiki-web.
If you are running this on a local machine, you need to forward the ports used by the nodes.
The ports that need to be forwarded are:
-
Web collaborator:
4001TCP/UDP - Used by ipfs-cluster kubo9096TCP - Used by ipfs-cluster swarm
-
Astrawiki collaborator:
40001TCP - Used by astrawiki node to listenTCPconnections.40001UDP - Used by astrawiki node to listenWebRTC-Directconnections.
-
Astrachat collaborator:
50001TCP - Used by astrachat node to listenTCPconnections.50001UDP - Used by astrachat node to listenWebRTC-Directconnections.
- Clone the repository:
git clone [email protected]:bitxenia/astrawiki-collaborator.git- Inside the cloned directory, create a
.envfile based on the.env.examplefile:
cp .env.example .env-
PUBLIC_IP: The public IP address of the machine where the container will run. This is used to configure the astrawiki node. -
CLUSTER_SERVICE_IPNS: The IPNS address of the service.json file. This is used to configure the ipfs-cluster-follow service. By default, it is set to the bitxenia's astrawiki-web service.json IPNS address. -
ENABLED_PROFILES: The profiles of the services to be started with the docker-compose. By default all services are enabled. You can choose which services to collaborate with by setting this variable. The available profiles are:astrawiki: To collaborate to the astrawiki node.astrachat: To collaborate to the astrachat node.web: To collaborate to the astrawiki-web.
A makefile is provided to help you with the most common tasks. You can run make to see the available targets.
make startmake stopmake logs