Setting up gotify/server with docker is pretty easy, you basically just have to start the docker container and you are ready to go:
Before starting gotify/server you may read the Configuration if you f.ex. use a different database.
$ docker run -p 80:80 -v /var/gotify/data:/app/data gotify/server
there is a specific docker image for arm-7 processors (raspberry pi), named gotify/server-arm7.
$ docker run -p 80:80 -v /var/gotify/data:/app/data gotify/server-arm7
/app/data contains the database file (if sqlite is used), images for applications and cert-files (if lets encrypt is enabled).
In this example the directory is mounted to
/var/gotify/data this directory should be included in a backup.
In this tutorial we set up gotify/server v2.0.5 on a 64 bit linux server but it should be similar on other platforms.
Download the zip with the binary for your platform from gotify/server Releases.
$ wget https://github.com/gotify/server/releases/download/v2.0.5/gotify-linux-amd64.zip
Unzip the archive.
$ unzip gotify-linux-amd64.zip
Make the binary executable.
$ chmod +x gotify-linux-amd64
Execute gotify/server. (By default gotify/server is started on port 80 so it requires sudo)
Before starting gotify/server you may read the Configuration if you f.ex. want to change the port or use a different database.
$ sudo ./gotify-linux-amd64