psql and mastodon
This commit is contained in:
parent
eeefce6c1c
commit
6a6dba369d
12 changed files with 153 additions and 8 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue