psql and mastodon

This commit is contained in:
zenfyr 2025-12-30 00:54:29 +07:00
commit 6a6dba369d
Signed by: melontini
SSH key fingerprint: SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE
12 changed files with 153 additions and 8 deletions

View file

@ -0,0 +1,24 @@
[Unit]
Description=Mastodon Web Service
Requires=postgresql.service mastodon-dfdb.service
After=postgresql.service mastodon-dfdb.service
[Container]
Image=ghcr.io/synth-download/mastodon:nightly
EnvironmentFile=/var/containers/mastodon/.env.secrets
EnvironmentFile=/var/containers/mastodon/.env
Exec=bundle exec puma -C config/puma.rb
HealthCmd=curl -s --noproxy localhost localhost:3000/health | grep -q 'OK' || exit 1
Network=mastodon.network
Network=postgresql.network
PublishPort=192.168.1.73:46098:3000
Volume=/var/containers/mastodon/public/system:/mastodon/public/system:z
Volume=/var/containers/mastodon/init/disable_ssl.rb:/mastodon/config/initializers/disable_ssl.rb:ro,z
Volume=/var/containers/mastodon/shared:/shared:z
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target