Installation
The quickest way to run Teatime is the published container image, which has everything bundled and ready. If you would rather host on Windows, a ready to run build ships with every release.
Docker
Create a docker-compose.yml next to your writing:
services:
teatime:
image: ghcr.io/melosso/teatime:latest
container_name: teatime
ports:
- "8080:8080"
volumes:
- ./content:/app/contentMount your own content/ folder holding your .md files and an optional config.json. When that is in place, bring it up:
docker compose up -dYour blog is then waiting at http://localhost:8080. For running it as a long lived service, the Docker Compose notes go a little further.
Windows and IIS
Each release ships a ready to run build for Windows:
- Download the latest
*-Windows_x64.zipfrom the Releases page. - Extract it into your site folder, for example
C:\inetpub\teatime. - Create an IIS site pointed at that folder, with the CLR version set to "No Managed Code".
- Make sure the .NET 11 Hosting Bundle is installed.
- Start the site and browse to it.
The zip already includes a web.config wired for in process hosting, so no manual edits are needed. A *-Linux_x64.zip build is attached to each release as well, though we have yet to document this installation process.
To change the port, hide drafts, or keep an API key out of your content folder, see environment variables.
Have fun writing!