Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 987 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 987 Bytes

Swarm

Make sure to create a decentralized server first.

Notice!

Make sure the leader manager node hostname sets to manager-1. All other nodes can have any host name.

Connect to your decentralized server.

# Setting the private key
mv sshfs /root/.ssh/id_rsa
chmod 600 /root/.ssh/id_rsa

# Updating
apt update
apt install sshfs

# Creating the base share folder
mkdir /home/share

# Add the mount, replace 10.0.0.15 with your decentralized server IP.
echo '[email protected]:/home/share /home/share fuse.sshfs allow_other,x-systemd.automount' >> /etc/fstab

# Run mount manually
mount -a

# Check the listed
ls /home/share

Deploy your Swarm stack

Put .env and docker-compose.yml inside the /root/appwrite/ folder, adjust the environment variables inside the .env file. Then run

export $(grep -v '^#' .env | xargs) && docker stack config -c docker-compose.yml && docker stack deploy -c docker-compose.yml appwrite