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

29 lines
861 B
Text

[Unit]
Description=Sharkey's Media service
After=postgresql.service sharkey-dfdb.service
BindsTo=postgresql.service sharkey-dfdb.service
[Container]
ContainerName=sharkey-media
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
Environment=MK_NO_DAEMONS=1
EnvironmentFile=/etc/containers/systemd/sharkey/.env.secrets
Network=sharkey.network
Network=postgresql.network
PublishPort=127.0.0.1:57378:3003
Volume=/var/containers/sharkey/files:/sharkey/files:z
Volume=/var/containers/sharkey/media:/sharkey/.config:z
Volume=/var/containers/sharkey/default.yml:/sharkey/.config/default.yml:ro,z
# Security
NoNewPrivileges=true
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target