You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
978 B
42 lines
978 B
[Unit] |
|
Description=Stella's Orly Nostr Relay (Docker Compose) |
|
Documentation=https://github.com/Silberengel/next.orly.dev |
|
After=network-online.target docker.service |
|
Wants=network-online.target |
|
Requires=docker.service |
|
|
|
[Service] |
|
Type=oneshot |
|
RemainAfterExit=yes |
|
User=madmin |
|
Group=madmin |
|
WorkingDirectory=/home/madmin/Projects/GitCitadel/next.orly.dev |
|
|
|
# Start the relay using docker compose |
|
ExecStart=/usr/bin/docker compose up -d orly-relay |
|
|
|
# Stop the relay |
|
ExecStop=/usr/bin/docker compose down |
|
|
|
# Reload configuration (restart containers) |
|
ExecReload=/usr/bin/docker compose restart orly-relay |
|
|
|
# Security settings |
|
NoNewPrivileges=true |
|
ProtectSystem=strict |
|
ProtectHome=read-only |
|
ReadWritePaths=/home/madmin/.local/share/orly-relay |
|
ReadWritePaths=/home/madmin/Projects/GitCitadel/next.orly.dev/data |
|
|
|
# Resource limits |
|
LimitNOFILE=65536 |
|
LimitNPROC=4096 |
|
|
|
# Restart policy |
|
Restart=on-failure |
|
RestartSec=10 |
|
TimeoutStartSec=60 |
|
TimeoutStopSec=30 |
|
|
|
[Install] |
|
WantedBy=multi-user.target
|
|
|