How to install Cherry with Docker and Docker-compose

Cherry is an open source self-hostable bookmark service. It supports full text search, powered by SQLite fts5. You can also import bookmarks from Pocket, Chrome/Firefox/Safari bookmark export and CSV files. It has a simple, and probably quite opinionated, web UI.
Requirements
- Docker
- Docker-compose
How to install?
If you haven't docker-compose, you can install it by run this command:
sudo curl -L "https://github.com/docker/compose/releases/download/v2.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose
You can find latest version of docker-compose at https://github.com/docker/compose/releases.
Add execute permission:
# Bash
sudo chmod +x /usr/bin/docker-compose
Step 1:
Create docker-compose.yml
file:
version: "3"
services:
cherry:
image: haishanh/cherry
restart: unless-stopped
ports:
- 8000:8000
volumes:
- ./data:/data
environment:
- JWT_SECRET=some-secret-string
- ENABLE_PUBLIC_REGISTRATION=1
More environment variables, you can see at here: https://cherry.haishan.me/docs/deploy
Now, run docker-compose up -d
to start container.
Step 2:
Now open your browser and type in http://localhost:8000.
Enjoying!