Server Installation
In the following tutorial, we'll install the Loci Notes server so that you (and possibly others) can reach it.
- Open a terminal on your server host.
- Ensure Docker and Docker Compose are installed correctly:
docker version
docker compose version
- Download the latest source code from https://gitlab.com/loci-notes/loci-server/-/releases. You want the "Loci Notes Server Build Files"
curl -O {URL for loci-server-build.tgz}
tar xzvf loci-server-build.tgz
- Enter the
loci-server-build
directory.
cd loci-server-main-build/
- Copy over the ENV file.
cp .env_EXAMPLE .env
- Open
.env
and set the values appropriately. At a minimum, you should need to set:
DOMAIN
- You Loci Notes Server domain name, likeloci-notes.yourdomain.com
BACKEND_CORS_ORIGINS
- Add your domain from above.SECRET_KEY
- Any long and random string.FIRST_SUPERUSER
- Email address of the server admin.FIRST_SUPERUSER_PASSWORD
- Password of the server admin. Any long and random string.POSTGRES_PASSWORD
- Any long and random string.STORAGE_SECRET_KEY
- Any long and random string.SMTP_*
- SMTP values, if email is needed (optional)
- Edit the
Caddyfile
to reflect your domain with port 443. (if needed) - Bring up the Docker Compose stack.
docker compose up -d