--- title: Easy Way to Install Lychee 6 with Docker lang: en published: 2025-03-08T01:00:00.000Z description: Discover the simplest method to deploy Lychee, the easy-to-use photo-management solution, using Docker. Perfect for beginners and tech enthusiasts alike. image: "" tags: - Docker - Lychee - Instagram category: DevOps draft: 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: ```bash git clone https://github.com/LycheeOrg/Lychee-Docker lychee ``` Open compose.yml: ```bash nano compose.yml ``` Edit compose.yml: ```bash 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: ```bash apt install caddy sudo systemctl enable caddy ``` Open Caddyfile: ```bash 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: ```bash 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](https://github.com/LycheeOrg/Lychee/issues/854) on February 19, 2025)*