Implemented central database for matrix and mastodon

This commit is contained in:
2024-01-04 20:57:02 +01:00
parent 77a3fb220a
commit 6ac081e501
7 changed files with 91 additions and 17 deletions

View File

@@ -5,6 +5,7 @@ SECRET_KEY_BASE={{mastodon_secret_key_base}}
OTP_SECRET={{mastodon_otp_secret}}
VAPID_PRIVATE_KEY={{mastodon_vapid_private_key}}
VAPID_PUBLIC_KEY={{mastodon_vapid_public_key}}
DB_HOST={{database_host}}
DB_PORT=5432
DB_NAME={{database_databasename}}

View File

@@ -6,7 +6,7 @@ services:
{% include 'templates/docker-service-' + database_type + '.yml.j2' %}
web:
image: tootsuite/mastodon:{{version_mastodon}}
image: ghcr.io/mastodon/mastodon:{{version_mastodon}}
restart: always
env_file: .env.production
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
@@ -22,7 +22,7 @@ services:
{% include 'templates/docker-container-networks.yml.j2' %}
streaming:
image: tootsuite/mastodon:{{version_mastodon}}
image: ghcr.io/mastodon/mastodon:{{version_mastodon}}
restart: always
env_file: .env.production
command: node ./streaming
@@ -36,7 +36,7 @@ services:
{% include 'templates/docker-container-networks.yml.j2' %}
sidekiq:
image: tootsuite/mastodon:{{version_mastodon}}
image: ghcr.io/mastodon/mastodon:{{version_mastodon}}
restart: always
env_file: .env.production
command: bundle exec sidekiq