From v0.5.6, Logseq is also available as a Docker image of Web App. The Docker image is available at ghcr.io/logseq/logseq-webapp:latest.
NOTE: Logseq web app uses File System Access API to access the file system. You need a compatible browser. Also, an HTTPS connection is required if you are accessing it remotely.
docker pull ghcr.io/logseq/logseq-webapp:latest
docker run -d --rm -p 3001:80 ghcr.io/logseq/logseq-webapp:latest
Open the browser and go to http://localhost:3001.
Here we use the mkcert to generate locally-trusted development certificates. For other purposes, you should apply a certificate from a trusted CA.
Suppose you are deploying the web app to 192.168.11.95.
# macOS
brew install mkcert
# or archlinux
sudo pacman -Ss mkcert
# or follow the install instructions from https://github.com/FiloSottile/mkcert
mkcert -install
mkcert 192.168.11.95 # public IP address or hostname of the remote machine
# ssl.conf
server {
listen 443 ssl;
ssl_certificate /etc/nginx/certs/192.168.11.95.pem;
ssl_certificate_key /etc/nginx/certs/192.168.11.95-key.pem;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
}
Copy the *.key
and ssl.conf
files to target machine.
docker pull ghcr.io/logseq/logseq-webapp:latest
docker run -d --rm -p 8443:443 -v `pwd`:/etc/nginx/certs -v ./ssl.conf:/etc/nginx/conf.d/ssl.conf ghcr.io/logseq/logseq-webapp:latest
Open your browser and navigate to https://192.168.11.95:8443
.