Install and Run
This guide is for whoever sets up the server: someone comfortable with Docker, DNS, and a reverse proxy. It takes you from an empty machine to a server your team signs in to. The people who use the server only need the last two sections.
What you need
Section titled “What you need”- A machine your team can reach, with Docker and Docker Compose.
- An SMTP relay to send sign-in codes and invites: your mail provider’s (Resend, Amazon SES, Postmark, Microsoft 365) or your own. Sign-in is by emailed code, so people can’t sign in without it. A short trial can print the codes instead, and a server that signs in with Microsoft alone needs no relay.
- A domain name, such as
eidos.example.com, pointed at the machine, with ports 80 and 443 open. - Disk for your projects. There is no storage limit but your own.
- Outbound HTTPS to
online.eidosmd.com, once you have a licence, for the daily check-in. A server with three editors or fewer needs no licence.
Optional, each set up in Configuration: PostgreSQL for the records, an S3-compatible bucket or an Azure Blob Storage container for asset files, a Microsoft Entra directory, and Google and Apple sign-in keys.
Each person uses the desktop app as they always do. The server is only where their projects meet.
Run it with Docker
Section titled “Run it with Docker”This is the quickest way to a server. The compose file runs the server’s image with Caddy in front, which fetches and renews the HTTPS certificate.
-
In a new folder, save this as
compose.yaml:services:eidos:image: ghcr.io/the-virtual-panda/eidos-server:${EIDOS_VERSION:-latest}restart: unless-stoppedenvironment:EIDOS_OWNER: ${EIDOS_OWNER:?name the server's owner in .env}EIDOS_URL: https://${EIDOS_DOMAIN:?name the server's domain in .env}EIDOS_SMTP_URL: ${EIDOS_SMTP_URL:-}EIDOS_MAIL_FROM: ${EIDOS_MAIL_FROM:-}EIDOS_MICROSOFT_CLIENT_ID: ${EIDOS_MICROSOFT_CLIENT_ID:-}EIDOS_MICROSOFT_CLIENT_SECRET: ${EIDOS_MICROSOFT_CLIENT_SECRET:-}EIDOS_MICROSOFT_TENANT_ID: ${EIDOS_MICROSOFT_TENANT_ID:-}EIDOS_EMAIL_CODES: ${EIDOS_EMAIL_CODES:-on}EIDOS_LICENCE: ${EIDOS_LICENCE:-}EIDOS_TRUSTED_PROXIES: 172.30.0.2volumes:- eidos-data:/datanetworks:- eidoscaddy:image: caddy:2restart: unless-stoppedcommand: caddy reverse-proxy --from ${EIDOS_DOMAIN} --to eidos:6280ports:- "80:80"- "443:443"- "443:443/udp"volumes:- caddy-data:/data- caddy-config:/confignetworks:eidos:ipv4_address: 172.30.0.2networks:eidos:ipam:config:- subnet: 172.30.0.0/24volumes:eidos-data:caddy-data:caddy-config: -
Beside it, save your settings as
.env. Percent-encode any@,/, or:in the SMTP user or password.Terminal window EIDOS_DOMAIN=eidos.example.comEIDOS_VERSION=latestThe owner is the person who runs the server and holds its licence. They sign in like anyone else, with that email, and see This server in the app. For sign-in with Microsoft, add its three keys to the same file. Set it up →
-
Start it and read the log:
Terminal window docker compose up -ddocker compose logs eidosThe log says where the server keeps its data, how it sends mail, and how people sign in. A warning there means the relay did not answer or refused the login.
-
Point the app at your server and sign in as the owner. The code arrives by email, which also proves your mail works.
Your data is in the eidos-data volume. Back it up →
Try it on your own machine
Section titled “Try it on your own machine”With no domain or mail, each sign-in code appears in the container’s output:
docker run --rm -p 6280:6280 -v eidos-data:/data -e [email protected] -e EIDOS_URL=http://localhost:6280 -e EIDOS_PRINT_CODES=1 ghcr.io/the-virtual-panda/eidos-serverBuild from the source
Section titled “Build from the source”Most teams use Docker and can skip this section. Building from the source needs macOS or Linux, Node.js 22.5 or later, pnpm 11, git, and access to the Eidos MD source, which is not public yet. Ask [email protected] for access.
-
Build the service. The build includes the CLI, whose commands the server runs for the Eidos API.
Terminal window git clone https://gitlab.com/the-virtual-panda/eidosmd.gitcd eidosmdpnpm install --frozen-lockfile --filter '@eidosmd/service...'pnpm --filter '@eidosmd/service...' build -
Start it with a folder for its data and the owner’s email.
--owneris needed at the first start and remembered after; starting with another email changes the owner.Terminal window -
Read what it prints:
eidos service: /home/eidos/eidos-datarecords: SQLite in the data folderassets: the data foldermail: printed in this outputsign-in: email codeshttp://127.0.0.1:6280 (sign-in at http://127.0.0.1:6280/api/auth) -
Pass on sign-in codes. With
--print-codes, each code and invite appears in the same output, such assign-in code for [email protected]: 196907. Send it to the person, who types it into the app’s sign-in dialog. For real use, replace--print-codeswith your SMTP relay.
Ctrl+C or SIGTERM stops the server. Every app keeps its changes and sends them when the server is back.
Put it behind HTTPS
Section titled “Put it behind HTTPS”The Docker setup above already does this. From the source, the server speaks plain HTTP: put it behind a reverse proxy that serves HTTPS, passes WebSocket connections through, and forwards to the server’s port. Then start the server with --url set to the address people use. Sign-in refuses requests from any other address.
node service/dist/src/serve.js --data ./eidos-data --owner [email protected] --url https://eidos.example.com --smtp smtp://user:[email protected]:587 --mail-from "Eidos MD <[email protected]>"Caddy fetches and renews the certificate and passes WebSockets through by default. The whole Caddyfile is:
eidos.example.com { reverse_proxy 127.0.0.1:6280}nginx needs the WebSocket headers and a long read timeout, and the certificate is yours to provide. client_max_body_size is the largest asset file (an image or a PDF) it lets through.
server { listen 443 ssl; server_name eidos.example.com; ssl_certificate /etc/ssl/eidos.example.com/fullchain.pem; ssl_certificate_key /etc/ssl/eidos.example.com/privkey.pem;
client_max_body_size 100m;
location / { proxy_pass http://127.0.0.1:6280; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 1h; }}- The server listens on every network interface, so firewall its port and leave it open to the proxy alone.
- A proxy on the same machine is trusted on its own. For one on another machine, start the server with
--trusted-proxy. Behind a proxy → - Serve the server at the root of its host name. An address with a path, such as
https://example.com/eidos, is not supported.
Point the app at your server
Section titled “Point the app at your server”Each person does this once, in the desktop app:
- Open the sign-in dialog: Sign in in the account menu at the foot of the Activity Bar, or Add an account if already signed in.
- Click Use a self-hosted server and type the server’s address under Server address.
- Sign in with the code from your email.

A bare host name, such as eidos.example.com, is reached over HTTPS; localhost and 127.0.0.1 over HTTP. For a trial on your own network without HTTPS, type the whole address, such as http://192.168.1.20:6280, and start the server with the same --url.
The account is the server’s own, separate from any on Eidos online. The app holds both side by side. An IT team can make the app offer its server first, and hide Eidos online, with a policy file.
Start working together
Section titled “Start working together”From here everything works as on Eidos online. The first person to turn on sync for a folder owns the project and invites the rest. Their invite links point at your server.