Deploy Lychee on Pethost in one click
A photo gallery to upload, sort and share your photos
What happens
- You sign in to Pethost or make an account, with a passkey, GitHub or Google.
- No machine yet? You pick a plan, and we prepare one for you. The link waits in your browser until it is ready.
- New project opens at the app, and you click Create project.
- In a minute or two the app is live at its own address with HTTPS. Its secrets are made for it at random, and its data is in the nightly backup.
- It is a project like any other: its compose.yaml, its .env, its logs and a terminal are in the panel, and your agent can change it, roll it back or restore it.
First steps
Open the address and create the admin account on the first page. Do it right away: until then the page is open to whoever has the address.
What it runs
The template is this compose.yaml and the variables it writes into the project’s .env. Pethost runs the file as it is written.
services:
lychee:
image: lycheeorg/lychee:v7
restart: unless-stopped
# Lychee's start takes a key only as base64 of 32 bytes: the 32 characters of KEY are those
# bytes.
entrypoint:
- sh
- -c
- export APP_KEY="base64:$$(printf %s "$$KEY" | base64)"; exec /usr/local/bin/entrypoint.sh "$$@"
- lychee
command: [php, artisan, octane:start, --server=frankenphp, --host=0.0.0.0, --port=8000]
environment:
KEY: ${KEY}
APP_URL: ${URL}
# TLS ends at the machine's proxy, which says so in X-Forwarded-Proto.
TRUSTED_PROXIES: "*"
DB_CONNECTION: sqlite
DB_DATABASE: /data/lychee.sqlite
# No worker: a job runs as it is made.
QUEUE_CONNECTION: sync
volumes:
- data:/data
- uploads:/app/public/uploads
volumes:
data:
uploads: