synth.download/beeper/etc/containers/systemd/sharkey/sharkey-api.container

30 lines
876 B
Text

[Unit]
Description=Sharkey's API and Web service
After=postgresql.service sharkey-dfdb.service
BindsTo=postgresql.service sharkey-dfdb.service
[Container]
ContainerName=sharkey-api
Image=registry.activitypub.software/transfem-org/sharkey:develop
Environment=MISSKEY_CONFIG_YML=*.yml
Environment=MISSKEY_CONFIG_DIR=/sharkey/.config
Environment=MK_ONLY_SERVER=1
Environment=MK_DISABLE_CLUSTERING=1
EnvironmentFile=/etc/containers/systemd/sharkey/.env.secrets
Network=sharkey.network
Network=postgresql.network
PublishPort=127.0.0.1:60628:3001
Volume=/var/containers/sharkey/files:/sharkey/files:z
Volume=/var/containers/sharkey/api:/sharkey/.config:z
Volume=/var/containers/sharkey/default.yml:/sharkey/.config/default.yml:ro,z
# Security
NoNewPrivileges=true
# Resources
PodmanArgs=--cpu-shares=2048
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target