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
+4
View File
@@ -0,0 +1,4 @@
---
dependencies:
- role: geerlingguy.nginx
- role: mastodon
+6
View File
@@ -0,0 +1,6 @@
---
- name: Configure docker-compose.yml
template:
src: docker-compose.override.yml.j2
dest: /home/mastodon/live/docker-compose.override.yml
notify: "docker-compose up"
@@ -0,0 +1,38 @@
version: '3'
services:
web:
image: tootsuite/mastodon:v4.0.2
restart: always
env_file: .env.production
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
networks:
- external_network
- internal_network
healthcheck:
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
ports:
- 3000:3000
depends_on:
- pgbouncer
environment:
- 'MAX_THREADS=10'
- 'WEB_CONCURRENCY=3'
volumes:
- ./public/system:/mastodon/public/system
streaming:
image: tootsuite/mastodon:v4.0.2
restart: always
env_file: .env.production
command: node ./streaming
networks:
- external_network
- internal_network
healthcheck:
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1']
environment:
- 'DB_POOL=25'
ports:
- 4000:4000
depends_on:
- pgbouncer