Installation
ListThingy runs on any machine that has Docker. One command builds and starts the server. Your lists live in a single SQLite file on that machine.
This page gets a server running on your own network. To change its settings, see Configuration. To put it on the internet with HTTPS and keep it healthy, see Self-hosting.
What you need
- A Linux server, or any computer that runs Docker
- Docker Engine with the Compose plugin
- Git
- A free port. The default is
80.
Start the server
Clone the code and start the stack:
git clone https://git.sometimescode.com/cgsmith/listthingy-api.git
cd listthingy-api
docker compose up -d --build
Open http://your-server in a browser. You should see the ListThingy home screen. Make a list to confirm that it saves.
The stack has three services:
| Service | What it does |
|---|---|
web | Serves the web app. It passes /v1/ requests to api and /ws/ connections to ws. It is the only service that opens a port. |
api | Runs the PHP API and holds the database. After each change it tells ws. |
ws | Holds the WebSocket connections and sends live updates to every client viewing the changed list. |
The database builds itself on the first request. There is no setup step.
If the ws service stops, ListThingy keeps working. Clients lose live updates until it comes back, and they pick up any missed changes when they reconnect.
Connect the phone apps
The iPhone and Android apps talk to the hosted service by default. To switch an app to your server, paste a list link from your server into Open a link. A link looks like https://lists.example.com/list/9f86d081884c7d659a2feaa0c55ad015. The app opens the list and uses your server from then on.
Tapping a link to your server opens it in the browser, not the app. Only links to the hosted service open the apps directly.