Initial commit

This commit is contained in:
Waffles
2022-12-21 22:30:01 -08:00
commit 19ebda26b4
47 changed files with 1429 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
---
dependencies:
- role: mastodon
+6
View File
@@ -0,0 +1,6 @@
---
- name: Configure docker-compose.override.yml
template:
src: docker-compose.override.yml.j2
dest: /home/mastodon/live/docker-compose.override.yml
notify: "docker-compose up"
@@ -0,0 +1,23 @@
services:
{% for SK in sidekiq %}
sidekiq-{{ SK['name'] }}:
image: tootsuite/mastodon:{{ MASTODON_VERSION }}
restart: always
env_file: .env.production
{% if 'q' in SK %}
command: bundle exec sidekiq {{ SK['q'] | join(' ') }} -c 10
{% else %}
command: bundle exec sidekiq
{% endif %}
depends_on:
- pgbouncer
networks:
- external_network
- internal_network
volumes:
- ./public/system:/mastodon/public/system
- ./config:/opt/mastodon/config
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
{% endfor %}