Logged in to took as mountdoom, add a new system user
sudo useradd -r -m /nonexistent -s /usr/bin/nologin continuwuity
Install Docker
curl -fsSL https://get.docker.com | sh
Add the new user to the docker group
sudo usermod -aG docker continuwuity
Test Docker
sudo docker run --rm hello-world
Install Continuwuity with Docker
sudo docker pull forgejo.ellis.link/continuwuation/continuwuity:latest
Create the working directory
sudo mkdir -p /opt/continuwuity
Move to it
cd /opt/continuwuity
Create the Docker compose file
sudo nano docker-compose.yml
Fill with
services:
continuwuity:
image: forgejo.ellis.link/continuwuation/continuwuity:latest
restart: unless-stopped
command: /sbin/conduwuit
ports:
- "8080:8008"
volumes:
- db:/var/lib/continuwuity
- ./continuwuity.toml:/continuwuity.toml:ro
environment:
CONTINUWUITY_SERVER_NAME: continuwuity.cogip.be
CONTINUWUITY_DATABASE_PATH: /var/lib/continuwuity
CONTINUWUITY_ADDRESS: 0.0.0.0
CONTINUWUITY_PORT: 8008
CONTINUWUITY_CONFIG: /continuwuity.toml
volumes:
db:
Create the config file
sudo nano continuwuity.toml
Complete, adapt or comment out the following lines
### continuwuity Configuration
###
### For more information, see:
### https://continuwuity.org/reference/config
[global]
new_user_displayname_suffix = "🇧🇪"
allow_registration = true
registration_token = "3rZYmh86bNgzinEw3Hv8DCOM6L" # modifier le token de 26 caractères
allow_encryption = true
allow_federation = true
allow_unstable_room_versions = false
allow_room_creation = true
trusted_servers = ["matrix.org"]
allow_local_presence = true
allow_incoming_presence = true
allow_outgoing_presence = true
allow_local_read_receipts = true
allow_incoming_read_receipts = true
allow_outgoing_read_receipts = true
allow_local_typing = true
allow_outgoing_typing = true
allow_incoming_typing = true
allow_guest_registration = false
forbidden_usernames = ["cogip", "admin", "administrator", "administrateur"]
Change user rights
sudo chown -R matrix:matrix /opt/continuwuity
And start the homeserver
sudo docker compose up -d