Latest PHP, MariaDB LTS and Nginx mainline, Easy setup with docker-compose.
Can be used behind reverse proxy to use SSL. in this case SECURITY_HEADER_HSTS_ENABLE
should be set to true in Lychee env settings
git clone https://github.com/EntropyRy/Lychee-Docker
// clone this repocd Lychee-Docker
// go in the dirgit clone https://github.com/LycheeOrg/Lychee.git
// clone the actual sofwarecp .env.example .env
and change settings- Change settings in
docker/fpm/php.ini
// Not sure if you even needed to change anything cp Lychee/.env.example Lychee/.env
and change settings same as in.env
// These are your actual Lychee settingsDB_CONNECTION
ismysql
,DB_HOST
isdb
and port3306
- You can change
CACHE_DRIVER
andSESSION_DRIVER
asapc
- Change anything you need/like.
- run
docker compose build; docker compose up -d
// build and start the docker containers - visit http://localhost // to see if everything is working
- run
docker compose exec fpm php -d memory_limit=-1 /usr/bin/composer.phar install --no-dev --prefer-dist
// to install depencies - finalize the setup in http://localhost
backup
cp .env docker/
./docker/db-backup.sh
import
gzip -d /docker/backup/file.sql.gz
./docker/db-import.sh /docker/backup/file.sql
docker-compose restart db
docker-compose exec fpm ./artisan
run ./update.sh