Compare commits
No commits in common. "1fd4403867c242a3d34fa9affa2dd8a18b10936b" and "988f5abb4550be661b9195ce46fc784d8790c880" have entirely different histories.
1fd4403867
...
988f5abb45
|
|
@ -1,8 +0,0 @@
|
||||||
FROM docker.io/ruby:3.2.3
|
|
||||||
Env DEBIAN_FRONTEND=noninteractive
|
|
||||||
RUN apt-get update && apt-get upgrade -y
|
|
||||||
RUN apt-get install apt-transport-https curl git libidn11-dev libldap2-dev -y
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
|
||||||
RUN apt-get install nodejs -y
|
|
||||||
RUN corepack enable
|
|
||||||
cmd bash
|
|
||||||
|
|
@ -5,13 +5,14 @@ After=NetworkManager.service network.target network-online.target
|
||||||
RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage
|
RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage
|
||||||
|
|
||||||
# %E is "the XDG_CONFIG path"
|
# %E is "the XDG_CONFIG path"
|
||||||
|
# docker run --net internal_network --restart always --shm-size 256mb --health-cmd CMD,pg_isready,-U,postgres -v ./postgres14:/var/lib/postgresql/data -e POSTGRES_HOST_AUTH_METHOD=trust postgres:14-alpine
|
||||||
[Service]
|
[Service]
|
||||||
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:16
|
ExecStart=/usr/bin/podman run --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
|
||||||
ExecStop=/usr/bin/podman stop mastodon-postgresql
|
ExecStop=/usr/bin/podman stop mastodon-postgres
|
||||||
ExecStopPost=/usr/bin/podman rm mastodon-postgresql
|
ExecStopPost=/usr/bin/podman rm mastodon-postgres
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=mastodon-redis.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 internal_network --restart always --health-cmd CMD,redis-cli,ping -v ./redis:/data redis:7-alpine
|
|
||||||
[Service]
|
|
||||||
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
||||||
Restart=on-failure
|
|
||||||
TimeoutStopSec=70
|
|
||||||
ExecStart=/usr/bin/podman run -d --name mastodon-redis --net internal_network --restart always --health-cmd CMD,redis-cli,ping -v mastodon-redis:/data redis:7
|
|
||||||
ExecStop=/usr/bin/podman stop mastodon-redis
|
|
||||||
ExecStopPost=/usr/bin/podman rm mastodon-redis
|
|
||||||
Type=oneshot
|
|
||||||
RemainAfterExit=yes
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
[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
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=mastodon-streaming.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 --health-cmd "CMD-SHELL,wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1" -p 127.0.0.1:4000:4000 ghcr.io/mastodon/mastodon:v4.2.7 node ./streaming
|
|
||||||
[Service]
|
|
||||||
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
||||||
Restart=on-failure
|
|
||||||
TimeoutStopSec=70
|
|
||||||
ExecStart=/usr/bin/podman run -d --name mastodon-streaming --net external_network --net internal_network --restart always --env-file %h/live/.env.production --health-cmd "CMD-SHELL,wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1" -p 127.0.0.1:4000:4000 localhost/jadestream /bin/node ./streaming
|
|
||||||
|
|
||||||
ExecStop=/usr/bin/podman stop mastodon-streaming
|
|
||||||
ExecStopPost=/usr/bin/podman rm mastodon-streaming
|
|
||||||
Type=oneshot
|
|
||||||
RemainAfterExit=yes
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
|
|
@ -5,12 +5,12 @@ After=NetworkManager.service network.target network-online.target
|
||||||
RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage
|
RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage
|
||||||
|
|
||||||
# %E is "the XDG_CONFIG path"
|
# %E is "the XDG_CONFIG path"
|
||||||
|
#docker run --net external_network --net internal_network --restart always --env-file .env.production --health-cmd "CMD-SHELL,wget -q --spider --proxy=off localhost:3000/health || exit 1" -p 127.0.0.1:3000:3000 -v ./public/system:/mastodon/public/system ghcr.io/mastodon/mastodon:v4.2.7 bundle exec puma -C config/puma.rb
|
||||||
[Service]
|
[Service]
|
||||||
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-web --net external_network --net internal_network --restart always --env-file %h/live/.env.production --health-cmd "CMD-SHELL,wget -q --spider --proxy=off localhost:3000/health || exit 1" -p 127.0.0.1:3000:3000 -v %h/live/public/system:/mastodon/public/system localhost/jademoe bundle exec puma -C config/puma.rb
|
ExecStart=/usr/bin/podman run --name mastodon-web -net external_network --net internal_network --restart always --env-file %h/live/.env.production --health-cmd "CMD-SHELL,wget -q --spider --proxy=off localhost:3000/health || exit 1" -p 127.0.0.1:3000:3000 -v %h/live/public/system localhost/jademoe bundle exec puma -C config/puma.rb
|
||||||
ExecStop=/usr/bin/podman stop mastodon-web
|
ExecStop=/usr/bin/podman stop mastodon-web
|
||||||
ExecStopPost=/usr/bin/podman rm mastodon-web
|
ExecStopPost=/usr/bin/podman rm mastodon-web
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue