Deploy with Docker
Run Documents on a server with Docker and HTTPS.
- Get the code. In the
configfile, write the connection of your PostgreSQL database (database) and the public address of your site (url, for examplehttps://docs.example.com). The compose file mounts thisconfigin the container.
git clone https://github.com/totaljs-es/documents.git
cd documents
docker compose up -d --build- Open
/admin/in the browser: the sign-in page shows the random login and password of the first start, with a button that fills in the form. Sign in, and then change them for your own in Users. They are also in the log:
docker compose logs documents- Put a reverse proxy with HTTPS in front of port 8000 (Caddy, nginx or Traefik).
The content lives in PostgreSQL, the uploaded images in the documents-data volume and the backups in documents-backups.
To update:
git pull
docker compose up -d --buildThe database and the volumes are kept. Back them up regularly: see Backups and updates.