Levelrail
Skip to content

Self-host Photoview with Docker ​

A fast, simple photo gallery that indexes an existing folder tree without importing or duplicating files.

This page describes the Levelrail template for Photoview (Media). It deploys the services below as one Docker Compose app on your own server.

Project site: https://photoview.github.io/docs/.

Recommended memory: about 256 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
photoviewphotoview/photoview:2.4.080
photoview_data -> /data
photoview_photos -> /photos
photoview_cache -> /app/cache

Environment variables ​

ServiceVariableValue
photoviewPHOTOVIEW_DATABASE_DRIVERPreset in the template
photoviewPHOTOVIEW_LISTEN_IPPreset in the template
photoviewPHOTOVIEW_LISTEN_PORTPreset in the template
photoviewPHOTOVIEW_SQLITE_PATHPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Photoview with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Photoview. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy photoview --name my-photoview

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Media templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.