Files
jormun-db/jormundb.service

25 lines
593 B
Desktop File

[Unit]
Description=JormunDB - DynamoDB-compatible database
Documentation=https://sweetapi.com/biondizzle/jormun-db
After=network.target
Wants=network.target
[Service]
Type=simple
User=root
# Binary location. We do not want to keey alive because we are using caddy as a proxy
ExecStart=/usr/local/bin/jormundb --no-keep-alive
# Environment
Environment=JORMUN_HOST=127.0.0.1
Environment=JORMUN_PORT=8002
Environment=JORMUN_DATA_DIR=/srv/jormundb/data
Environment=JORMUN_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE
# Restart behavior
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target