Sign in

lychee

v7.13.1-ls16

Lychee is a free photo-management tool, which runs on your server or web-space. Installing is a matter of seconds. Upload, manage and share photos like from a native application. Lychee comes with everything you need and all your photos are stored securely.

docker pull ghcr.io/linuxserver-playground/lychee:latest
v7.13.1-ls16 · amd64 · CI screenshot · test report

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Required
DB type, from sqlite, mysql, pqsql.
DB server hostname. For mysql and pgsql only.
DB server port. For mysql and pgsql only.
DB user. For mysql and pgsql only.
DB password. For mysql and pgsql only.
Path to DB file for sqlite. DB name for mysql and pgsql.
Persistent config files.
Where lychee will store uploaded images.
http gui
Optional settings3

Tick what you need; it is added to every output with its value.

Mods

0 for lychee, 0 universal mods suggested for it, and 13 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  lychee:
    image: ghcr.io/linuxserver-playground/lychee:latest
    container_name: lychee
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - DB_CONNECTION=
      - DB_HOST=
      - DB_PORT=
      - DB_USERNAME=
      - DB_PASSWORD=
      - DB_DATABASE=
    volumes:
      - /path/to/lychee/config:/config
      - /path/to/pictures:/pictures
    ports:
      - 80:80
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

  • Replace the /path/to folders with real folders on your host; they are created if missing.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch master · stablev7.13.1-ls16amd64 · arm64 passed

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/lychee:v7.13.1-ls16

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-alpine-nginx:3.24
Upstream version
v7.13.1
amd64 compressed
136 MB · 11 layers
arm64 compressed
133 MB · 11 layers
amd64 packages
529 · Alpine Linux v3.24
arm64 packages
528 · Alpine Linux v3.24
Tests
passed
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

lychee on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
master → :latestsuccess
v7.13.1
? unknown––

Application setup#

This image will not work with a prefilled /pictures mount, Lychee wants total control over this folder

Setup account via the webui, accessible at http://SERVERIP:PORT

More info at lychee.

Customization

In certain scenarios, you might need to change the default settings of Lychee. For instance, if you encounter limitations when uploading large files, you can increase this limit.

Increasing Upload Limit

The upload limit is defined in the user.ini file located in the config directory (/config). You can increase this limit by modifying the following values:

post_max_size = 500M
upload_max_filesize = 500M

After making these changes, you’ll need to restart the Docker container for the changes to take effect.

Please note that these changes might have implications on your server’s performance, depending on its available resources. Thus, it’s recommended to modify these settings with caution.

Parameters#

Ports#
PortFunctionRequired
80:80http guirequired
Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired
DB_CONNECTION=DB type, from sqlite, mysql, pqsql.required
DB_HOST=DB server hostname. For mysql and pgsql only.required
DB_PORT=DB server port. For mysql and pgsql only.required
DB_USERNAME=DB user. For mysql and pgsql only.required
DB_PASSWORD=DB password. For mysql and pgsql only.required
DB_DATABASE=Path to DB file for sqlite. DB name for mysql and pgsql.required
APP_NAME=LycheeThe gallery name.optional
APP_URL=The URL you will use to access Lychee including protocol, and port where appropriate.optional
TRUSTED_PROXIES=Set to the IP or netmask covering your reverse proxy, if running behind one. Set to to trust all IPs (do not use if exposed to the internet`).optional
Volumes#
PathFunctionRequired
/configPersistent config files.required
/picturesWhere lychee will store uploaded images.required

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

User / Group Identifiers#

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull lychee
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d lychee
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/lychee:latest
  • Stop the running container:

    docker stop lychee
  • Delete the container:

    docker rm lychee
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver-playground/docker-lychee.git
cd docker-lychee
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/lychee:latest .

The ARM variants can be built on x86_64 hardware and vice versa using ghcr.io/linuxserver/qemu-static

docker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 12 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
v7.13.1-ls16master · b262111cweekly package checkbasesuccess136 MB amd64133 MB arm64
v7.13.1-ls15master · c3bc2a99weekly package checkbasesuccess138 MB amd64136 MB arm64
v7.13.1-ls14master · f6a74c77upstream checkmixedsuccess135 MB amd64133 MB arm64
v7.13.0-ls13master · 285c3d56weekly package checkbasesuccess135 MB amd64133 MB arm64
v7.13.0-ls12master · 8002da3bweekly package checkbasesuccess135 MB amd64133 MB arm64
Older releases12Release, run record and run on GitHub
Older releases of lychee, without a page on this site
TagBuiltLinks
v7.13.0-ls11masterRelease v7.13.0-ls11 on GitHub (opens in a new tab)run.json of v7.13.0-ls11Run that built v7.13.0-ls11, on GitHub (opens in a new tab)
v7.13.0-ls10masterRelease v7.13.0-ls10 on GitHub (opens in a new tab)run.json of v7.13.0-ls10Run that built v7.13.0-ls10, on GitHub (opens in a new tab)
v7.13.0-ls9masterRelease v7.13.0-ls9 on GitHub (opens in a new tab)run.json of v7.13.0-ls9Run that built v7.13.0-ls9, on GitHub (opens in a new tab)
v7.12.2-ls8masterRelease v7.12.2-ls8 on GitHub (opens in a new tab)run.json of v7.12.2-ls8Run that built v7.12.2-ls8, on GitHub (opens in a new tab)
v7.12.1-ls7masterRelease v7.12.1-ls7 on GitHub (opens in a new tab)run.json of v7.12.1-ls7Run that built v7.12.1-ls7, on GitHub (opens in a new tab)
v7.12.1-ls6masterRelease v7.12.1-ls6 on GitHub (opens in a new tab)run.json of v7.12.1-ls6Run that built v7.12.1-ls6, on GitHub (opens in a new tab)
v7.12.0-ls6masterRelease v7.12.0-ls6 on GitHub (opens in a new tab)run.json of v7.12.0-ls6Run that built v7.12.0-ls6, on GitHub (opens in a new tab)
v7.12.0-ls5masterRelease v7.12.0-ls5 on GitHub (opens in a new tab)run.json of v7.12.0-ls5Run that built v7.12.0-ls5, on GitHub (opens in a new tab)
v7.12.0-ls4masterRelease v7.12.0-ls4 on GitHub (opens in a new tab)run.json of v7.12.0-ls4Run that built v7.12.0-ls4, on GitHub (opens in a new tab)
v7.12.0-ls3masterRelease v7.12.0-ls3 on GitHub (opens in a new tab)run.json of v7.12.0-ls3Run that built v7.12.0-ls3, on GitHub (opens in a new tab)
v7.12.0-ls2masterRelease v7.12.0-ls2 on GitHub (opens in a new tab)run.json of v7.12.0-ls2Run that built v7.12.0-ls2, on GitHub (opens in a new tab)
v7.12.0-ls1masterRelease v7.12.0-ls1 on GitHub (opens in a new tab)run.json of v7.12.0-ls1Run that built v7.12.0-ls1, on GitHub (opens in a new tab)

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for lychee

No mod targets lychee specifically; the 13 universal mods work with every image.

Reverse proxy#

lychee listens on http://lychee:80.

What you named the lychee container; SWAG resolves it on the shared network.

Uncomments the matching include lines; API locations stay open so client apps keep working.

  • Save as /config/nginx/proxy-confs/lychee.subdomain.conf in SWAG (drop the .sample) and restart SWAG.
  • Your DNS needs a record for lychee.yourdomain.com (a CNAME to the domain, or a wildcard), and SWAG's SUBDOMAINS must cover it.
  • The lychee container and SWAG must share a user-defined Docker network so the name resolves.
## Version 2026/11/26
# make sure that your lychee container is named lychee
# make sure that your dns has a cname set for lychee

server {
    listen 443 ssl;
#    listen 443 quic;
    listen [::]:443 ssl;
#    listen [::]:443 quic;

    server_name lychee.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth (requires ldap-location.conf in the location block)
    #include /config/nginx/ldap-server.conf;

    # enable for Authelia (requires authelia-location.conf in the location block)
    #include /config/nginx/authelia-server.conf;

    # enable for Authentik (requires authentik-location.conf in the location block)
    #include /config/nginx/authentik-server.conf;

    # enable for Tinyauth (requires tinyauth-location.conf in the location block)
    #include /config/nginx/tinyauth-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable for ldap auth (requires ldap-server.conf in the server block)
        #include /config/nginx/ldap-location.conf;

        # enable for Authelia (requires authelia-server.conf in the server block)
        #include /config/nginx/authelia-location.conf;

        # enable for Authentik (requires authentik-server.conf in the server block)
        #include /config/nginx/authentik-location.conf;

        # enable for Tinyauth (requires tinyauth-server.conf in the server block)
        #include /config/nginx/tinyauth-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app lychee;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

Default sample.

Source: linuxserver-playground.github.io/hub/api/v1/catalog/lychee/proxy.json

Changelog#

  1. Rebase to Alpine 3.24.

  2. Add php84-ldap as dependency.

  3. Rebase to Alpine 3.22.

  4. Verify build artifacts with cosign.

  5. Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings.

  6. Add php-sodium.

  7. Rebase to Alpine 3.19 with php 8.3.

  8. Update image to support v5.

21 earlier entries
  1. Existing users should update: site-confs/default.conf - Cleanup default site conf. Build npm dependencies into image.
  2. Rebase to Alpine 3.18, deprecate armhf.
  3. Move ssl.conf include to default.conf.
  4. Rebasing to alpine 3.17 with php8.1. Restructure nginx configs (see changes announcement (opens in a new tab)). Switch to git clone as builds fail with the release artifact.
  5. Make readme clearer.
  6. Add php-intl for v4.3.
  7. Add jpegoptim.
  8. Rebase to alpine 3.13, add php7-ctype.
  9. Upgrade to Lychee v4 and rebased to alpine 3.12.
  10. Rebasing to alpine 3.11.
  11. Increase fastcgi timeouts (existing users need to manually update).
  12. Update project website url.
  13. Rebasing to alpine 3.10.
  14. Rebase to alpine 3.9, use new armv7 image format.
  15. Added ffmpeg for video thumbnail creation, switched to installing zip release instead of source tarball, created small thumbnails folder, switched to dynamic readme.
  16. Adding pipeline logic and multi arch..
  17. Rebase to alpine 3.8, switch to LycheeOrg repository.
  18. Rebase to alpine 3.7.
  19. Rebase to alpine 3.6.
  20. Use repo pinning to better solve dependencies, use repo version of php7-imagick.
  21. Initial Release.

Support#

Questions about running lychee? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:

    docker exec -it lychee /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f lychee
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' lychee
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/lychee:latest

Community project

Improve lychee

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the lychee image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the lychee image, test it and draft the PR.
  • Make a mod for lychee that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Related

Browse all

darktable

5.6.2-2-ls14

darktable is an open source photography workflow application and raw developer. A virtual lighttable and darkroom for photographers. It manages your digital negatives in a database, lets you view them through a zoomable lighttable and enables you to develop raw images and enhance them.

0 GitHub starsselkiesarm64

digikam

9.2.0-ls15

digiKam: Professional Photo Management with the Power of Open Source

0 GitHub starsselkies

piwigo

16.5.0-ls12

Piwigo is a photo gallery software for the web that comes with powerful features to publish and manage your collection of pictures.

0 GitHub starsalpine-nginxarm64