Simple self-hosted photo gallery focused on performance.
2.3K
Gallerina is a simple self-hosted photo gallery with a focus on performance.
JPEG, PNG, GIF.The easiest way to use gallerina is via the docker image with
docker-compose. Make sure you have docker and docker-compose installed
in your system. Then create a file called docker-compose.yml with the following contents:
version: "3"
services:
gallerina:
image: dhole1/gallerina
restart: always
init: true
ports:
# Choose the port where the http server will be exposed.
- 8888:8080
environment:
# Choose a different value to limit the number of threads for thumbnail
# creation. 0 will default to the number of CPU cores detected.
- GALLERINA_THREADS=0
volumes:
# Choose a folder where the database will be stored.
- /path/to/database:/app/db:delegated
# Set the folder where your media is.
- /path/to/media:/app/media:ro
Edit the file with your chosen parameters, and start the server with:
docker-compose up -d
Now browse http://localhost:8888 (or with a different port if you changed
it), and you should see root folder view. To scan and index images go to the
Control tab and press Start Scan. In the future, if you update the media
directory, you can re-scan and index the new media pressing again the Start Scan button in the Control tab.
The backend has been developed in Rust, with SQLite and lmdb as databases. The http API has been developed with the tide web application framework. The library used to interface with sqlite is sqlx, and the one for lmdb is heed
The frontend has been developed using Svelte. The UI uses the chota CSS framework.
AGPLv3
Content type
Image
Digest
sha256:98b6d806e…
Size
353.7 MB
Last updated
8 months ago
docker pull dhole1/gallerina:1.0.0-beta31