docker-bits/lsio/lychee/docker-run.sh

25 lines
1.3 KiB
Bash
Raw Normal View History

2021-04-21 00:55:42 +00:00
# [Lychee](https://lycheeorg.github.io/) 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.' ### UPGRADE
# WARNING Please note that the v4 upgrade process resets ALL password-protected
# albums. Any albums that were made public with a password will need to be re-
# secured.
2021-04-10 10:16:29 +00:00
2023-04-26 00:53:18 +00:00
. ./.env
2021-04-10 10:16:29 +00:00
docker run -d \
--name=lychee \
2022-04-02 00:45:58 +00:00
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
2023-02-26 14:51:38 +00:00
-e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \
2021-04-10 10:16:29 +00:00
-e DB_HOST=mariadb `# for specifying the database host` \
2023-01-24 00:58:44 +00:00
-e DB_PORT=3306 `# for specifying the database port` \
2021-04-10 10:16:29 +00:00
-e DB_USERNAME=lychee `# for specifying the database user` \
-e DB_PASSWORD=dbpassword `# for specifying the database password` \
-e DB_DATABASE=lychee `# for specifying the database to be used` \
-p 80:80 `# http gui` \
-v ${BASEDIR:-/volume1/docker}/lychee/config:/config `# Contains all relevant configuration files.` \
-v ${BASEDIR:-/volume1/docker}/lychee/pictures:/pictures `# Where lychee will store uploaded data.` \
--restart unless-stopped \
ghcr.io/linuxserver/lychee