hello
This commit is contained in:
parent
288c2ed1be
commit
afde767a8c
|
@ -9,7 +9,7 @@ RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage
|
||||||
Environment=PODMAN_SYSTEMD_UNIT=%n
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=70
|
TimeoutStopSec=70
|
||||||
ExecStart=/usr/bin/podman run -d --name mastodon-postgresql --net internal_network --restart always --shm-size 256mb --health-cmd CMD,pg_isready,-U,postgres -v mastodon-postgresql:/var/lib/postgresql/data -e POSTGRES_HOST_AUTH_METHOD=trust postgres:14
|
ExecStart=/usr/bin/podman run -d --name mastodon-postgresql --net internal_network --restart always --shm-size 256mb --health-cmd CMD,pg_isready,-U,postgres -v mastodon-postgresql:/var/lib/postgresql/data -e POSTGRES_HOST_AUTH_METHOD=trust postgres:16
|
||||||
ExecStop=/usr/bin/podman stop mastodon-postgresql
|
ExecStop=/usr/bin/podman stop mastodon-postgresql
|
||||||
ExecStopPost=/usr/bin/podman rm mastodon-postgresql
|
ExecStopPost=/usr/bin/podman rm mastodon-postgresql
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
[Unit]
|
||||||
|
Description=mastodon-sidekiq.service
|
||||||
|
Wants=network-online.target
|
||||||
|
After=NetworkManager.service network.target network-online.target
|
||||||
|
RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage
|
||||||
|
|
||||||
|
# %E is "the XDG_CONFIG path"
|
||||||
|
# docker run --net external_network --net internal_network --restart always --env-file .env.production -v ./public/system:/mastodon/public/system --health-cmd "CMD-SHELL,ps aux | grep '[s]idekiq 6' || false" ghcr.io/mastodon/mastodon:v4.2.7 bundle exec sidekiq
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
|
Restart=on-failure
|
||||||
|
TimeoutStopSec=70
|
||||||
|
ExecStart=/usr/bin/podman run -d --name mastodon-sidekiq --net external_network --net internal_network --restart always --env-file %h/live/.env.production --health-cmd "CMD-SHELL,ps aux | grep '[s]idekiq 6' || false" localhost/jademoe bundle exec sidekiq
|
||||||
|
ExecStop=/usr/bin/podman stop mastodon-sidekiq
|
||||||
|
ExecStopPost=/usr/bin/podman rm mastodon-sidekiq
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
Loading…
Reference in New Issue