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

24 lines
735 B
Text

[Unit]
Description=Sharkey's Worker service
After=postgresql.service sharkey-dfdb.service
Requires=postgresql.service sharkey-dfdb.service
[Container]
ContainerName=sharkey-worker
Image=registry.activitypub.software/transfem-org/sharkey:develop
Environment=MISSKEY_CONFIG_YML=*.yml
Environment=MISSKEY_CONFIG_DIR=/sharkey/.config
Environment=MK_ONLY_QUEUE=1
EnvironmentFile=/etc/containers/systemd/sharkey/.env.secrets
Network=sharkey.network
Network=postgresql.network
Volume=/var/containers/sharkey/files:/sharkey/files:z
Volume=/var/containers/sharkey/worker:/sharkey/.config:z
Volume=/var/containers/sharkey/default.yml:/sharkey/.config/default.yml:ro,z
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target