docker-bits/lsio/lychee/docker-run.sh
2024-01-15 01:25:04 +00:00

26 lines
1.6 KiB
Bash

# [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.'
. ./.env
docker run -d \
--name=lychee \
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
-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).` \
-e DB_CONNECTION= `# DB type, from `sqlite`, `mysql`, `pqsql`.` \
-e DB_HOST= `# DB server hostname. For `mysql` and `pgsql` only.` \
-e DB_PORT= `# DB server port. For `mysql` and `pgsql` only.` \
-e DB_USERNAME= `# DB user. For `mysql` and `pgsql` only.` \
-e DB_PASSWORD= `# DB password. For `mysql` and `pgsql` only.` \
-e DB_DATABASE= `# Path to DB file for `sqlite`. DB name for `mysql` and `pgsql`.` \
-e APP_NAME=Lychee `# optional` `# The gallery name.` \
-e APP_URL= `# optional` `# The URL you will use to access Lychee including protocol, and port where appropriate.` \
-e TRUSTED_PROXIES= `# optional` `# 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`).` \
-p 80:80 `# http gui` \
-v ${BASEDIR:-/volume1/docker}/lychee/config:/config `# Persistent config files.` \
-v ${BASEDIR:-/volume1/docker}/lychee/pictures:/pictures `# Where lychee will store uploaded images.` \
--restart unless-stopped \
ghcr.io/linuxserver/lychee