2.2 KiB
2.2 KiB
| title | lang | published | description | image | tags | category | draft | |||
|---|---|---|---|---|---|---|---|---|---|---|
| Easy Way to Install Lychee 6 with Docker | en | 2025-03-08T01:00:00.000Z | Discover the simplest method to deploy Lychee, the easy-to-use photo-management solution, using Docker. Perfect for beginners and tech enthusiasts alike. |
|
DevOps | false |
Easy Way to Install Lychee 6 with Docker
Discover the simplest method to deploy Lychee, the easy-to-use photo-management solution, using Docker. Perfect for beginners and tech enthusiasts alike.
Docker Compose
Download Lychee repository:
git clone https://github.com/LycheeOrg/Lychee-Docker lychee
Open compose.yml:
nano compose.yml
Edit compose.yml:
services:
lychee:
image: lycheeorg/lychee
container_name: lychee
ports:
- 13032:80
volumes:
- ./lychee/conf:/conf
- ./lychee/uploads:/uploads
- ./lychee/sym:/sym
- ./lychee/logs:/logs
- ./lychee/tmp:/lychee-tmp
networks:
- lychee
environment:
# Replace with your timezone (List of supported timezones: https://www.php.net/manual/en/timezones.php)
- PHP_TZ=America/Los_Angeles
- TIMEZONE=America/Los_Angeles
- APP_FORCE_HTTPS=true
- APP_URL=https://draw.example.com
- DB_CONNECTION=sqlite
restart: unless-stopped
network:
lychee:
Caddy
Install Caddy:
apt install caddy
sudo systemctl enable caddy
Open Caddyfile:
nano /etc/caddy/Caddyfile
Edit Caddyfile:
example.com {
# You can use a different name instead of "/draw."
route /draw* {
uri strip_prefix /draw
redir https://draw.{host}{uri}
}
}
# To use a different port, change the "ports:" section in your docker-compose.yml file.
draw.example.com {
reverse_proxy localhost:13032
encode zstd gzip
}
Restart Caddy:
sudo systemctl restart caddy
Go to Lychee at https://draw.example.com or at https://example.com/draw if you prefer using a subpath.
In advanced settings, add .pdf|.docx to 'raw_formats' for uploading PDF and Word files. Other file extensions work, too.
(Retrieved from Lychee GitHub Issues on February 19, 2025)