Merge branch 'main' of ssh://synth.download:10429/sd/synth.download
This commit is contained in:
commit
306bd80cff
22 changed files with 66 additions and 44 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Ask.JS
|
Description=Ask.JS
|
||||||
After=postgresql.service
|
After=postgresql.service
|
||||||
Requires=postgresql.service
|
BindsTo=postgresql.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
Image=ghcr.io/ihateblueb/ask-js:dev
|
Image=ghcr.io/ihateblueb/ask-js:dev
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,15 @@ Image=docker.io/copyparty/ac:latest
|
||||||
ContainerName=copyparty
|
ContainerName=copyparty
|
||||||
Environment=LD_PRELOAD=/usr/lib/libmimalloc-secure.so
|
Environment=LD_PRELOAD=/usr/lib/libmimalloc-secure.so
|
||||||
Environment=PYTHONUNBUFFERED=1
|
Environment=PYTHONUNBUFFERED=1
|
||||||
HealthCmd=wget --spider -q 127.0.0.1:3923/?reset=/._
|
|
||||||
HealthInterval=1m
|
|
||||||
HealthTimeout=2s
|
|
||||||
HealthRetries=5
|
|
||||||
PublishPort=127.0.0.1:15084:3923
|
PublishPort=127.0.0.1:15084:3923
|
||||||
UserNS=keep-id:uid=1000,gid=1000
|
UserNS=keep-id:uid=1000,gid=1000
|
||||||
Volume=/var/containers/copyparty/config:/cfg:Z
|
Volume=/var/containers/copyparty/config:/cfg:Z
|
||||||
Volume=/mnt/ext/copyparty:/w:z
|
Volume=/mnt/ext/copyparty:/w:z
|
||||||
|
# Health
|
||||||
|
HealthCmd=wget --spider -q 127.0.0.1:3923/?reset=/._
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthStartPeriod=1m
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,15 @@ AutoUpdate=registry
|
||||||
SecurityLabelDisable=true
|
SecurityLabelDisable=true
|
||||||
Unmask=ALL
|
Unmask=ALL
|
||||||
AddDevice=/dev/fuse
|
AddDevice=/dev/fuse
|
||||||
HealthCmd=podman info || exit 1
|
|
||||||
HealthInterval=5s
|
|
||||||
HealthTimeout=3s
|
|
||||||
HealthRetries=5
|
|
||||||
User=podman
|
User=podman
|
||||||
Volume=/var/containers/dind/data:/home/podman/.local/share/containers:Z
|
Volume=/var/containers/dind/data:/home/podman/.local/share/containers:Z
|
||||||
Volume=/var/run/dind:/var/run/1000:z
|
Volume=/var/run/dind:/var/run/1000:z
|
||||||
Exec=sh -c "podman system service --time=0 unix:///var/run/1000/docker.sock & PID=$!; while [ ! -S /var/run/1000/docker.sock ]; do sleep 0.1; kill -0 $PID 2>/dev/null || exit 1; done && chmod 0666 /var/run/1000/docker.sock && wait $PID"
|
Exec=sh -c "podman system service --time=0 unix:///var/run/1000/docker.sock & PID=$!; while [ ! -S /var/run/1000/docker.sock ]; do sleep 0.1; kill -0 $PID 2>/dev/null || exit 1; done && chmod 0666 /var/run/1000/docker.sock && wait $PID"
|
||||||
|
# Health
|
||||||
|
HealthCmd=podman info || exit 1
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthStartPeriod=30s
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=ejabberd
|
Description=ejabberd
|
||||||
Requires=postgresql.service
|
BindsTo=postgresql.service
|
||||||
After=postgresql.service
|
After=postgresql.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Forgejo
|
Description=Forgejo
|
||||||
After=postgresql.service
|
After=postgresql.service
|
||||||
Requires=postgresql.service
|
BindsTo=postgresql.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
Image=codeberg.org/forgejo/forgejo:13
|
Image=codeberg.org/forgejo/forgejo:13
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=FreshRSS
|
Description=FreshRSS
|
||||||
Requires=postgresql.service
|
BindsTo=postgresql.service
|
||||||
After=postgresql.service
|
After=postgresql.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Iceshrimp.NET
|
Description=Iceshrimp.NET
|
||||||
Requires=postgresql.service
|
BindsTo=postgresql.service
|
||||||
After=postgresql.service
|
After=postgresql.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,6 @@ ContainerName=mailserver
|
||||||
EnvironmentFile=/etc/containers/systemd/mailserver/.env.secrets
|
EnvironmentFile=/etc/containers/systemd/mailserver/.env.secrets
|
||||||
EnvironmentFile=/etc/containers/systemd/mailserver/.env
|
EnvironmentFile=/etc/containers/systemd/mailserver/.env
|
||||||
AddCapability=NET_ADMIN
|
AddCapability=NET_ADMIN
|
||||||
HealthCmd=ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1
|
|
||||||
HealthInterval=10s
|
|
||||||
HealthTimeout=3s
|
|
||||||
HealthRetries=0
|
|
||||||
HostName=mx1.synth.download
|
HostName=mx1.synth.download
|
||||||
PublishPort=25:25
|
PublishPort=25:25
|
||||||
PublishPort=143:143
|
PublishPort=143:143
|
||||||
|
|
@ -23,10 +19,14 @@ Volume=/var/containers/mailserver/logs:/var/log/mail:Z
|
||||||
Volume=/var/containers/mailserver/config:/tmp/docker-mailserver:Z
|
Volume=/var/containers/mailserver/config:/tmp/docker-mailserver:Z
|
||||||
Volume=/etc/certs/wildcard_.synth.download.crt:/etc/letsencrypt/live/synth.download/fullchain.pem:ro,z
|
Volume=/etc/certs/wildcard_.synth.download.crt:/etc/letsencrypt/live/synth.download/fullchain.pem:ro,z
|
||||||
Volume=/etc/certs/wildcard_.synth.download.key:/etc/letsencrypt/live/synth.download/privkey.pem:ro,z
|
Volume=/etc/certs/wildcard_.synth.download.key:/etc/letsencrypt/live/synth.download/privkey.pem:ro,z
|
||||||
|
# Health
|
||||||
|
HealthCmd=ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthStartPeriod=1m
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10s
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,13 @@ Environment=DFLY_default_lua_flags=allow-undeclared-keys
|
||||||
Environment=DFLY_dbfilename=dump.rdb
|
Environment=DFLY_dbfilename=dump.rdb
|
||||||
Environment=DFLY_df_snapshot_format=false
|
Environment=DFLY_df_snapshot_format=false
|
||||||
Environment=DFLY_dir=/data
|
Environment=DFLY_dir=/data
|
||||||
HealthCmd=redis-cli ping
|
|
||||||
HealthInterval=5s
|
|
||||||
HealthRetries=20
|
|
||||||
Network=mastodon.network
|
Network=mastodon.network
|
||||||
Volume=/var/containers/mastodon/dragonfly:/data:Z
|
Volume=/var/containers/mastodon/dragonfly:/data:Z
|
||||||
|
# Health
|
||||||
|
HealthCmd=redis-cli ping
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthStartPeriod=10s
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Mastodon Ingress Service
|
Description=Mastodon Ingress Service
|
||||||
Requires=postgresql.service mastodon-dfdb.service
|
BindsTo=postgresql.service mastodon-dfdb.service
|
||||||
After=postgresql.service mastodon-dfdb.service
|
After=postgresql.service mastodon-dfdb.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Mastodon Sidekiq Service
|
Description=Mastodon Sidekiq Service
|
||||||
Requires=postgresql.service mastodon-dfdb.service
|
BindsTo=postgresql.service mastodon-dfdb.service
|
||||||
After=postgresql.service mastodon-dfdb.service
|
After=postgresql.service mastodon-dfdb.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
|
@ -9,10 +9,14 @@ ContainerName=mastodon-sidekiq
|
||||||
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
|
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
|
||||||
EnvironmentFile=/etc/containers/systemd/mastodon/.env
|
EnvironmentFile=/etc/containers/systemd/mastodon/.env
|
||||||
Exec=bundle exec sidekiq
|
Exec=bundle exec sidekiq
|
||||||
HealthCmd=ps aux | grep '[s]idekiq 7' || false
|
|
||||||
Network=mastodon.network
|
Network=mastodon.network
|
||||||
Network=postgresql.network
|
Network=postgresql.network
|
||||||
Volume=/var/containers/mastodon/public/system:/mastodon/public/system:z
|
Volume=/var/containers/mastodon/public/system:/mastodon/public/system:z
|
||||||
|
# Health
|
||||||
|
HealthCmd=ps aux | grep '[s]idekiq\ 8' || false
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthStartPeriod=1m
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Mastodon Streaming Service
|
Description=Mastodon Streaming Service
|
||||||
Requires=postgresql.service mastodon-dfdb.service
|
BindsTo=postgresql.service mastodon-dfdb.service
|
||||||
After=postgresql.service mastodon-dfdb.service
|
After=postgresql.service mastodon-dfdb.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
|
@ -9,10 +9,14 @@ ContainerName=mastodon-streaming
|
||||||
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
|
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
|
||||||
EnvironmentFile=/etc/containers/systemd/mastodon/.env
|
EnvironmentFile=/etc/containers/systemd/mastodon/.env
|
||||||
Exec=node ./streaming/index.js
|
Exec=node ./streaming/index.js
|
||||||
HealthCmd=curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1
|
|
||||||
Network=mastodon.network
|
Network=mastodon.network
|
||||||
Network=postgresql.network
|
Network=postgresql.network
|
||||||
PublishPort=127.0.0.1:58834:4000
|
PublishPort=127.0.0.1:58834:4000
|
||||||
|
# Health
|
||||||
|
HealthCmd=curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthStartPeriod=1m
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Mastodon Web Service
|
Description=Mastodon Web Service
|
||||||
Requires=postgresql.service mastodon-dfdb.service
|
BindsTo=postgresql.service mastodon-dfdb.service
|
||||||
After=postgresql.service mastodon-dfdb.service
|
After=postgresql.service mastodon-dfdb.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
|
@ -9,13 +9,17 @@ ContainerName=mastodon-web
|
||||||
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
|
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
|
||||||
EnvironmentFile=/etc/containers/systemd/mastodon/.env
|
EnvironmentFile=/etc/containers/systemd/mastodon/.env
|
||||||
Exec=bundle exec puma -C config/puma.rb
|
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=mastodon.network
|
||||||
Network=postgresql.network
|
Network=postgresql.network
|
||||||
PublishPort=127.0.0.1:46098:3000
|
PublishPort=127.0.0.1:46098:3000
|
||||||
Volume=/var/containers/mastodon/public/system:/mastodon/public/system:z
|
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/init/disable_ssl.rb:/mastodon/config/initializers/disable_ssl.rb:ro,z
|
||||||
Volume=/var/containers/mastodon/shared:/shared:z
|
Volume=/var/containers/mastodon/shared:/shared:z
|
||||||
|
# Health
|
||||||
|
HealthCmd=curl -s --noproxy localhost localhost:3000/health | grep -q 'OK' || exit 1
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthStartPeriod=1m
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,14 @@ Image=docker.io/groonga/pgroonga:latest-alpine-18
|
||||||
ContainerName=postgresql
|
ContainerName=postgresql
|
||||||
EnvironmentFile=/etc/containers/systemd/postgresql/.env
|
EnvironmentFile=/etc/containers/systemd/postgresql/.env
|
||||||
Network=postgresql.network
|
Network=postgresql.network
|
||||||
HealthCmd=pg_isready -U postgres -d postgres
|
|
||||||
HealthInterval=40s
|
|
||||||
HealthTimeout=3s
|
|
||||||
HealthRetries=20
|
|
||||||
UserNS=keep-id:uid=999,gid=999
|
UserNS=keep-id:uid=999,gid=999
|
||||||
Volume=/var/containers/postgresql/data:/var/lib/postgresql/data:Z
|
Volume=/var/containers/postgresql/data:/var/lib/postgresql/data:Z
|
||||||
Volume=/var/containers/postgresql/exp:/mnt/exp:Z
|
Volume=/var/containers/postgresql/exp:/mnt/exp:Z
|
||||||
|
# Health
|
||||||
|
HealthCmd=pg_isready -U postgres -d postgres
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthStartPeriod=30s
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,13 @@ Image=quay.io/redlib/redlib:latest
|
||||||
ContainerName=redlib
|
ContainerName=redlib
|
||||||
AutoUpdate=registry
|
AutoUpdate=registry
|
||||||
EnvironmentFile=/etc/containers/systemd/redlib/.env
|
EnvironmentFile=/etc/containers/systemd/redlib/.env
|
||||||
HealthCmd=wget --spider -q --tries=1 http://localhost:8080/settings
|
|
||||||
HealthInterval=5m
|
|
||||||
HealthTimeout=3s
|
|
||||||
PublishPort=127.0.0.1:51617:8080
|
PublishPort=127.0.0.1:51617:8080
|
||||||
|
# Health
|
||||||
|
HealthCmd=wget --spider -q --tries=1 http://localhost:8080/settings
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthInterval=5m
|
||||||
|
HealthStartPeriod=30s
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=SearXNG
|
Description=SearXNG
|
||||||
After=searxng-dfdb.service
|
After=searxng-dfdb.service
|
||||||
Requires=searxng-dfdb.service
|
BindsTo=searxng-dfdb.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
Image=docker.io/searxng/searxng:latest
|
Image=docker.io/searxng/searxng:latest
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Sharkey's ActivityPub Federation service
|
Description=Sharkey's ActivityPub Federation service
|
||||||
After=postgresql.service sharkey-dfdb.service
|
After=postgresql.service sharkey-dfdb.service
|
||||||
Requires=postgresql.service sharkey-dfdb.service
|
BindsTo=postgresql.service sharkey-dfdb.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
ContainerName=sharkey-activity
|
ContainerName=sharkey-activity
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Sharkey's API and Web service
|
Description=Sharkey's API and Web service
|
||||||
After=postgresql.service sharkey-dfdb.service
|
After=postgresql.service sharkey-dfdb.service
|
||||||
Requires=postgresql.service sharkey-dfdb.service
|
BindsTo=postgresql.service sharkey-dfdb.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
ContainerName=sharkey-api
|
ContainerName=sharkey-api
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,13 @@ Environment=DFLY_default_lua_flags=allow-undeclared-keys
|
||||||
Environment=DFLY_dbfilename=dump.rdb
|
Environment=DFLY_dbfilename=dump.rdb
|
||||||
Environment=DFLY_df_snapshot_format=false
|
Environment=DFLY_df_snapshot_format=false
|
||||||
Environment=DFLY_dir=/data
|
Environment=DFLY_dir=/data
|
||||||
HealthCmd=redis-cli ping
|
|
||||||
HealthInterval=5s
|
|
||||||
HealthRetries=20
|
|
||||||
Network=sharkey.network
|
Network=sharkey.network
|
||||||
Volume=/var/containers/sharkey/dfdb:/data:Z
|
Volume=/var/containers/sharkey/dfdb:/data:Z
|
||||||
|
# Health
|
||||||
|
HealthCmd=redis-cli ping
|
||||||
|
HealthOnFailure=kill
|
||||||
|
HealthStartPeriod=10s
|
||||||
|
Notify=healthy
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Sharkey's Media service
|
Description=Sharkey's Media service
|
||||||
After=postgresql.service sharkey-dfdb.service
|
After=postgresql.service sharkey-dfdb.service
|
||||||
Requires=postgresql.service sharkey-dfdb.service
|
BindsTo=postgresql.service sharkey-dfdb.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
ContainerName=sharkey-media
|
ContainerName=sharkey-media
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Sharkey's Worker service
|
Description=Sharkey's Worker service
|
||||||
After=postgresql.service sharkey-dfdb.service
|
After=postgresql.service sharkey-dfdb.service
|
||||||
Requires=postgresql.service sharkey-dfdb.service
|
BindsTo=postgresql.service sharkey-dfdb.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
ContainerName=sharkey-worker
|
ContainerName=sharkey-worker
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Zitadel
|
Description=Zitadel
|
||||||
Requires=postgresql.service
|
BindsTo=postgresql.service
|
||||||
After=postgresql.service
|
After=postgresql.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue