move .env to /etc/containers/systemd

This commit is contained in:
zenfyr 2026-01-02 04:38:40 +07:00
commit 6cf7e7f1d7
Signed by: melontini
SSH key fingerprint: SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE
23 changed files with 30 additions and 30 deletions

View file

@ -4,8 +4,8 @@ Description=Aode ActivityPub Relay
[Container]
Image=registry.hub.docker.com/asonix/relay:latest
ContainerName=aode-relay
EnvironmentFile=/var/containers/aode/.env.secrets
EnvironmentFile=/var/containers/aode/.env
EnvironmentFile=/etc/containers/systemd/aode/.env.secrets
EnvironmentFile=/etc/containers/systemd/aode/.env
PublishPort=127.0.0.1:19438:8080
Volume=/var/containers/aode/relay:/db:Z

View file

@ -7,7 +7,7 @@ After=postgresql.service
Image=ghcr.io/processone/ejabberd:latest
ContainerName=ejabberd
Environment=CTL_ON_START=registered_users synth.download ; status
EnvironmentFile=/var/containers/ejabberd/.env
EnvironmentFile=/etc/containers/systemd/ejabberd/.env
Network=ejabberd.network
Network=postgresql.network
PublishPort=5222:5222

View file

@ -6,7 +6,7 @@ Requires=dind.service
[Container]
Image=data.forgejo.org/forgejo/runner:4.0.0
ContainerName=forgejo-runner
EnvironmentFile=/var/containers/forgejo/.env.runner
EnvironmentFile=/etc/containers/systemd/forgejo/.env.runner
Network=forgejo.network
User=1001:1001
Exec=/bin/sh -c "sleep 5; forgejo-runner daemon"

View file

@ -6,7 +6,7 @@ Requires=postgresql.service
[Container]
Image=codeberg.org/forgejo/forgejo:13
ContainerName=forgejo
EnvironmentFile=/var/containers/forgejo/.env
EnvironmentFile=/etc/containers/systemd/forgejo/.env
Network=forgejo.network
Network=postgresql.network
PublishPort=127.0.0.1:41807:3000

View file

@ -6,7 +6,7 @@ After=postgresql.service
[Container]
Image=docker.io/freshrss/freshrss:latest
ContainerName=freshrss
EnvironmentFile=/var/containers/freshrss/.env.secrets
EnvironmentFile=/etc/containers/systemd/freshrss/.env.secrets
Network=freshrss.network
Network=postgresql.network
PublishPort=127.0.0.1:27819:80

View file

@ -4,7 +4,7 @@ Description=Tangled Knot Server
[Container]
Image=ghcr.io/zenfyrdev/knot:latest
ContainerName=knot
EnvironmentFile=/var/containers/knot/.env
EnvironmentFile=/etc/containers/systemd/knot/.env
PublishPort=127.0.0.1:44131:5555
PublishPort=20564:22
Volume=/var/containers/knot/keys:/etc/ssh/keys:Z

View file

@ -4,7 +4,7 @@ Description=mailserver
[Container]
Image=ghcr.io/docker-mailserver/docker-mailserver:edge
ContainerName=mailserver
EnvironmentFile=/var/containers/mailserver/mailserver.env
EnvironmentFile=/etc/containers/systemd/mailserver/mailserver.env
AddCapability=NET_ADMIN
HealthCmd=ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1
HealthInterval=10s

View file

@ -6,8 +6,8 @@ After=postgresql.service mastodon-dfdb.service
[Container]
Image=ghcr.io/synth-download/mastodon-ingress:nightly
ContainerName=mastodon-ingress
EnvironmentFile=/var/containers/mastodon/.env.secrets
EnvironmentFile=/var/containers/mastodon/.env
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
EnvironmentFile=/etc/containers/systemd/mastodon/.env
Network=mastodon.network
Network=postgresql.network

View file

@ -6,8 +6,8 @@ After=postgresql.service mastodon-dfdb.service
[Container]
Image=ghcr.io/synth-download/mastodon:nightly
ContainerName=mastodon-sidekiq
EnvironmentFile=/var/containers/mastodon/.env.secrets
EnvironmentFile=/var/containers/mastodon/.env
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
EnvironmentFile=/etc/containers/systemd/mastodon/.env
Exec=bundle exec sidekiq
HealthCmd=ps aux | grep '[s]idekiq 7' || false
Network=mastodon.network

View file

@ -6,8 +6,8 @@ After=postgresql.service mastodon-dfdb.service
[Container]
Image=ghcr.io/synth-download/mastodon-streaming:nightly
ContainerName=mastodon-streaming
EnvironmentFile=/var/containers/mastodon/.env.secrets
EnvironmentFile=/var/containers/mastodon/.env
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
EnvironmentFile=/etc/containers/systemd/mastodon/.env
Exec=node ./streaming/index.js
HealthCmd=curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1
Network=mastodon.network

View file

@ -6,8 +6,8 @@ After=postgresql.service mastodon-dfdb.service
[Container]
Image=ghcr.io/synth-download/mastodon:nightly
ContainerName=mastodon-web
EnvironmentFile=/var/containers/mastodon/.env.secrets
EnvironmentFile=/var/containers/mastodon/.env
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
EnvironmentFile=/etc/containers/systemd/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

View file

@ -4,8 +4,8 @@ Description=MollySocket
[Container]
Image=ghcr.io/mollyim/mollysocket:1.6-alpine
ContainerName=mollysocket
EnvironmentFile=/var/containers/mollysocket/.env.secrets
EnvironmentFile=/var/containers/mollysocket/.env
EnvironmentFile=/etc/containers/systemd/mollysocket/.env.secrets
EnvironmentFile=/etc/containers/systemd/mollysocket/.env
Exec=server
PublishPort=127.0.0.1:19236:19236
Volume=/var/containers/mollysocket/data:/data:Z

View file

@ -4,8 +4,8 @@ Description=ATProto Personal Data Server
[Container]
Image=ghcr.io/bluesky-social/pds:latest
ContainerName=pds
EnvironmentFile=/var/containers/pds/.env.secrets
EnvironmentFile=/var/containers/pds/.env
EnvironmentFile=/etc/containers/systemd/pds/.env.secrets
EnvironmentFile=/etc/containers/systemd/pds/.env
PublishPort=127.0.0.1:24318:3000
Volume=pds.volume:/pds

View file

@ -4,7 +4,7 @@ Description=PostgreSQL Database
[Container]
Image=registry.hub.docker.com/groonga/pgroonga:latest-alpine-18
ContainerName=postgresql
EnvironmentFile=/var/containers/postgresql/.env
EnvironmentFile=/etc/containers/systemd/postgresql/.env
Network=postgresql.network
HealthCmd=pg_isready -U postgres -d postgres
HealthInterval=40s

View file

@ -4,7 +4,7 @@ Description=Redlib
[Container]
Image=quay.io/redlib/redlib:latest
ContainerName=redlib
EnvironmentFile=/var/containers/redlib/.env
EnvironmentFile=/etc/containers/systemd/redlib/.env
HealthCmd=wget --spider -q --tries=1 http://localhost:8080/settings
HealthInterval=5m
HealthTimeout=3s

View file

@ -11,7 +11,7 @@ Environment=MISSKEY_CONFIG_DIR=/sharkey/.config
Environment=MK_ONLY_SERVER=1
Environment=MK_DISABLE_CLUSTERING=1
Environment=MK_NO_DAEMONS=1
EnvironmentFile=/var/containers/sharkey/.env.secrets
EnvironmentFile=/etc/containers/systemd/sharkey/.env.secrets
Network=sharkey.network
Network=postgresql.network
PublishPort=127.0.0.1:47815:3002

View file

@ -10,7 +10,7 @@ Environment=MISSKEY_CONFIG_YML=*.yml
Environment=MISSKEY_CONFIG_DIR=/sharkey/.config
Environment=MK_ONLY_SERVER=1
Environment=MK_DISABLE_CLUSTERING=1
EnvironmentFile=/var/containers/sharkey/.env.secrets
EnvironmentFile=/etc/containers/systemd/sharkey/.env.secrets
Network=sharkey.network
Network=postgresql.network
PublishPort=127.0.0.1:60628:3001

View file

@ -11,7 +11,7 @@ Environment=MISSKEY_CONFIG_DIR=/sharkey/.config
Environment=MK_ONLY_SERVER=1
Environment=MK_DISABLE_CLUSTERING=1
Environment=MK_NO_DAEMONS=1
EnvironmentFile=/var/containers/sharkey/.env.secrets
EnvironmentFile=/etc/containers/systemd/sharkey/.env.secrets
Network=sharkey.network
Network=postgresql.network
PublishPort=127.0.0.1:57378:3003

View file

@ -9,7 +9,7 @@ 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=/var/containers/sharkey/.env.secrets
EnvironmentFile=/etc/containers/systemd/sharkey/.env.secrets
Network=sharkey.network
Network=postgresql.network
Volume=/var/containers/sharkey/files:/sharkey/files:z

View file

@ -4,7 +4,7 @@ Description=Tangled Spindle Server
[Container]
Image=ghcr.io/zenfyrdev/spindle:latest
ContainerName=spindle
EnvironmentFile=/var/containers/spindle/.env
EnvironmentFile=/etc/containers/systemd/spindle/.env
PublishPort=127.0.0.1:40653:6555
Volume=/var/containers/spindle/server/logs:/var/log/spindle:Z
Volume=/var/containers/spindle/server:/app:Z

View file

@ -4,7 +4,7 @@ Description=Vaultwarden
[Container]
Image=vaultwarden/server:latest
ContainerName=vaultwarden
EnvironmentFile=/var/containers/vaultwarden/.env
EnvironmentFile=/etc/containers/systemd/vaultwarden/.env
PublishPort=127.0.0.1:60838:80
Volume=/var/containers/vaultwarden/data:/data:Z

View file

@ -3,7 +3,7 @@ Description=zenfyr's XPost
[Container]
Image=ghcr.io/zenfyrdev/xpost:latest
EnvironmentFile=/var/containers/zenfyr-xpost/.env
EnvironmentFile=/etc/containers/systemd/zenfyr-xpost/.env
Volume=/var/containers/zenfyr-xpost/data:/app/data:Z,U
[Service]

View file

@ -6,7 +6,7 @@ After=postgresql.service
[Container]
Image=ghcr.io/zitadel/zitadel:latest
ContainerName=zitadel
EnvironmentFile=/var/containers/zitadel/.env
EnvironmentFile=/etc/containers/systemd/zitadel/.env
Network=zitadel.network
Network=postgresql.network
PublishPort=127.0.0.1:19241:8080