2026-01-01 18:00:42 +07:00
|
|
|
[Unit]
|
|
|
|
|
Description=Redlib
|
|
|
|
|
|
|
|
|
|
[Container]
|
|
|
|
|
Image=quay.io/redlib/redlib:latest
|
|
|
|
|
ContainerName=redlib
|
2026-01-02 05:45:03 +07:00
|
|
|
AutoUpdate=registry
|
2026-01-02 04:38:40 +07:00
|
|
|
EnvironmentFile=/etc/containers/systemd/redlib/.env
|
2026-01-11 10:07:38 +07:00
|
|
|
PublishPort=127.0.0.1:51617:8080
|
|
|
|
|
# Health
|
2026-01-01 18:00:42 +07:00
|
|
|
HealthCmd=wget --spider -q --tries=1 http://localhost:8080/settings
|
2026-01-11 10:07:38 +07:00
|
|
|
HealthOnFailure=kill
|
2026-01-01 18:00:42 +07:00
|
|
|
HealthInterval=5m
|
2026-01-11 10:07:38 +07:00
|
|
|
HealthStartPeriod=30s
|
|
|
|
|
Notify=healthy
|
2026-01-11 14:11:56 +07:00
|
|
|
# Security
|
|
|
|
|
NoNewPrivileges=true
|
2026-01-01 18:00:42 +07:00
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=10s
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=default.target
|