Installation (User)
This guide explains how to deploy LibreFolio for regular use using Docker. This is the recommended method for users who do not intend to modify the source code.
Prerequisites
- Docker: Install Docker
- Docker Compose: Usually included with Docker Desktop.
1. Download the Project
Download the latest release from the GitHub Releases page. Unzip the folder.
Alternatively, you can clone the repository:
2. Configure Environment
The project uses a .env file for configuration. A sample file is provided.
-
Copy the example file:
-
Edit
.env(Optional):PORT: Change the port if8000is already in use.SECRET_KEY: For better security, change this to a long, random string. You can generate one here.
3. Run with Docker Compose
This single command will build the images and start the application.
-druns the application in detached mode (in the background).- The first time you run this, Docker will download the necessary base images and build the application, which may take a few minutes.
4. Create a Superuser
To log in, you need to create an administrator account.
docker-compose exec backend pipenv run python user_cli.py create-superuser <username> <email> <password>
Replace <username>, <email>, and <password> with your credentials.
5. Access LibreFolio
The application is now running! Open your browser and go to:
http://localhost:8000
(Or use the port you configured in .env).
Updating LibreFolio
To update to a new version:
-
Download the latest code:
-
Rebuild and restart the containers:
-
Apply database migrations (if any):