Spanish Total.js
English
Documentation For AI agents
Contents

Install with Docker

Build a Docker image from the OpenFiles code and run it with your data in a volume.

.md GitHub
On this page

The repository has a Dockerfile. You build the image yourself and run it with a volume, so your data survives when you recreate the container.

Build and run

1. Get the code and open its folder:

git clone https://github.com/totaljs/openfiles.git
cd openfiles

2. Build the image:

docker build -t openfiles .

3. Start a container. OpenFiles listens on port 8000 inside the container, and the volume openfiles keeps the data:

docker run -d --name openfiles -p 8000:8000 -v openfiles:/www openfiles

4. Open http://localhost:8000/. The sign-in page shows the first-start account. See First sign-in.

Where the data lives

Inside the container the app runs from /www/.src/, and the data is in /www/.src/databases/. Both are inside the openfiles volume. When you remove the container and start a new one with the same volume, your storages, files, API tokens and account are still there.

To see what is in the data folder:

docker exec openfiles ls /www/.src/databases

See The data folder.

Stop and start

docker stop openfiles
docker start openfiles

Before you open OpenFiles to other people, read Run in production.

Made in Europe