Gotify
Gotify
Configuration
Gotify is a server for sending and receiving messages using HTTP REST calls.
Image
To use gotify, it needs to be included in your generated image. Update your build configuration to include it.
.config/my-server-build
{
"containers": [
"gotify"
]
}
Service
A systemd container unit for gotify has been included in automatos-server
. This container unit file serves as a baseline and requires additional customizations from the user to run gotify successfully.
[Unit]
Description=Container service for %p
Requires=network-online.target nss-lookup.target
After=network-online.target nss-lookup.target
[Container]
ContainerName=%p
Image=docker.io/gotify/server:latest
Volume=${CONTAINER_PATH}/data:/app/data:Z
PublishPort=${WEB_PORT}:80
AutoUpdate=registry
[Service]
ExecCondition=/usr/bin/test -d "${CONTAINER_PATH}/data"
Restart=on-failure
[Install]
WantedBy=default.target
Customizations
Environment Variables
The following environment variables are used to configure the gotify container. The values provided are notional. Customize these values to suit your needs.
/etc/containers/systemd/gotify.container.d/01-variables.conf
[Container]
Environment=TZ=Etc/Utc
[Service]
Environment=CONTAINER_PATH=/var/path/to/gotify/volumes
Environment=WEB_PORT=80
References
Last updated on