forked from coop-cloud/mastodon
Compare commits
23 Commits
2.1.0+v4.5.0
...
english
| Author | SHA1 | Date | |
|---|---|---|---|
| f1bd5df88b | |||
| f2f7b05c82 | |||
| 35280b714b | |||
| cc3ae5af16 | |||
| 714d050e07 | |||
| 414f5acc71 | |||
| 52cd608f4f | |||
| 986a780c56 | |||
| 434d95dc30 | |||
| b6a5ea548f | |||
| f0cce1ffad | |||
|
5b2d3845db
|
|||
| 9d5927f60a | |||
|
faf931a91a
|
|||
|
f4f105aea6
|
|||
|
a8cf0fd940
|
|||
| 7f1ba44869 | |||
|
0004866d6b
|
|||
| 849d8ba9a7 | |||
| 7846559007 | |||
| 53ea5afb5b | |||
| f24aa11ddc | |||
| d9de83eb06 |
+13
-6
@@ -67,9 +67,7 @@ REDIS_PORT=6379
|
||||
|
||||
# ElasticSearch
|
||||
# --------------------------------------
|
||||
ES_ENABLED=true
|
||||
ES_HOST=es
|
||||
ES_PORT=9200
|
||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.elasticsearch.yml"
|
||||
|
||||
# StatsD (CURRENTLY NOT SUPPORTED)
|
||||
# -------------------------------
|
||||
@@ -86,6 +84,7 @@ SECRET_SMTP_PASSWORD_VERSION=v1
|
||||
SECRET_ARE_DETERMINISTIC_KEY_VERSION=v1
|
||||
SECRET_ARE_KEY_DERIVATION_SALT_VERSION=v1
|
||||
SECRET_ARE_PRIMARY_KEY_VERSION=v1
|
||||
SECRET_AWS_SECRET_ACCESS_KEY_VERSION=v1
|
||||
|
||||
# Web Push
|
||||
# ========
|
||||
@@ -126,10 +125,9 @@ DEFAULT_LOCALE=en
|
||||
|
||||
# S3 and AWS
|
||||
# ----------
|
||||
# S3_ENABLED=
|
||||
# S3_BUCKET=
|
||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.s3.yml"
|
||||
# AWS_ACCESS_KEY_ID=
|
||||
# AWS_SECRET_ACCESS_KEY=
|
||||
# S3_BUCKET=
|
||||
# S3_REGION=
|
||||
# S3_PROTOCOL=
|
||||
# S3_HOSTNAME=
|
||||
@@ -138,6 +136,15 @@ DEFAULT_LOCALE=en
|
||||
# S3_OVERRIDE_PATH_STYLE=
|
||||
# S3_OPEN_TIMEOUT=
|
||||
# S3_READ_TIMEOUT=
|
||||
# S3_RETRY_LIMIT=
|
||||
# S3_FORCE_SINGLE_REQUEST=
|
||||
# S3_ENABLE_CHECKSUM_MODE=
|
||||
# S3_STORAGE_CLASS=
|
||||
# S3_MULTIPART_THRESHOLD=
|
||||
# S3_PERMISSION=
|
||||
# S3_BATCH_DELETE_LIMIT=
|
||||
# S3_BATCH_DELETE_RETRY=
|
||||
# S3_ALIAS_HOST=
|
||||
|
||||
# External Authentication
|
||||
# =======================
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
# Mastodon Recipe Maintenance
|
||||
|
||||
All contributions should be made via a pull request. This is to ensure a
|
||||
certain quality and consistency, that others can rely on.
|
||||
|
||||
## Maintainer Responsibilities
|
||||
|
||||
Maintainers are responsible for installing regular updates:
|
||||
|
||||
- Patch and minor updates within a week of them being released upstream
|
||||
- Major updates within a month of them being released upstream
|
||||
|
||||
And responding to pull requests and issues, within a week of them being filed.
|
||||
|
||||
In order to fulfill these responsibilities a recipe maintainer:
|
||||
|
||||
- Has to watch the repository (to get notifications)
|
||||
- Needs to make sure Renovate is configured properly
|
||||
|
||||
## Pull Requests
|
||||
|
||||
A pull request can be merged if it is approved by at least one maintainer. For
|
||||
pull requests opened by a maintainer they need to be approved by another
|
||||
maintainer. Even though it is okay to merge a pull request with one approval, it
|
||||
is always better if all maintainers looked at the pull request and approved it.
|
||||
|
||||
## Become a maintainer
|
||||
|
||||
Everyone can apply to be a recipe maintainer:
|
||||
|
||||
1. Watch the repository to always get updates
|
||||
2. Simply add yourself to the list in the [README.md](./README.md), add yourself to whichever things you would like to be (co) responsible for in this document, then open a new pull request with the change.
|
||||
3. Once the pull request gets merged you will be added to the [mastodon maintainers team](https://git.coopcloud.tech/org/coop-cloud/teams/mastodon-maintainers).
|
||||
@@ -3,7 +3,7 @@
|
||||
> Your self-hosted, globally interconnected microblogging community
|
||||
|
||||
<!-- metadata -->
|
||||
* **Maintainer**: `@3wordchant` (Matrix: `@3wc:autonomic.zone`)
|
||||
* **Maintainers**: `@3wordchant` (Matrix: `@3wc:autonomic.zone`), `Benjamin` (Matrix: `@benjaminlj:matrix.org`), `Nick` (Matrix: `@nicksellen:matrix.org`)
|
||||
* **Status**: `stable`
|
||||
* **Category**: Apps
|
||||
* **Features**: 1
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
export ENTRYPOINT_CONF_VERSION=v6
|
||||
export ENTRYPOINT_STREAMING_CONF_VERSION=v1
|
||||
export ENTRYPOINT_CONF_VERSION=v7
|
||||
export ENTRYPOINT_STREAMING_CONF_VERSION=v2
|
||||
# we're using abra in english
|
||||
export LANG=C
|
||||
|
||||
grep=grep
|
||||
if ! $grep -P --version 2>/dev/null 1>/dev/null
|
||||
@@ -40,6 +42,7 @@ environment() {
|
||||
file_env "OTP_SECRET"
|
||||
file_env "SECRET_KEY_BASE"
|
||||
file_env "VAPID_PRIVATE_KEY"
|
||||
file_env "AWS_SECRET_ACCESS_KEY"
|
||||
file_env "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY"
|
||||
file_env "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT"
|
||||
file_env "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY"
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
es:
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
|
||||
environment:
|
||||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
||||
- "cluster.name=es-mastodon"
|
||||
- "discovery.type=single-node"
|
||||
- "bootstrap.memory_lock=true"
|
||||
networks:
|
||||
- internal
|
||||
volumes:
|
||||
- es:/usr/share/elasticsearch/data
|
||||
ulimits:
|
||||
memlock:
|
||||
soft: -1
|
||||
hard: -1
|
||||
|
||||
app:
|
||||
environment: &es-env
|
||||
- "ES_ENABLED=true"
|
||||
- "ES_HOST=es"
|
||||
- "ES_PORT=9200"
|
||||
|
||||
streaming:
|
||||
environment: *es-env
|
||||
|
||||
sidekiq:
|
||||
environment: *es-env
|
||||
|
||||
volumes:
|
||||
es:
|
||||
@@ -0,0 +1,42 @@
|
||||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
environment: &s3-env
|
||||
- S3_ENABLED=true
|
||||
- AWS_ACCESS_KEY_ID
|
||||
- AWS_SECRET_ACCESS_KEY_FILE=/run/secrets/aws_secret_access_key
|
||||
- S3_BUCKET
|
||||
- S3_REGION
|
||||
- S3_PROTOCOL
|
||||
- S3_HOSTNAME
|
||||
- S3_ENDPOINT
|
||||
- S3_SIGNATURE_VERSION
|
||||
- S3_OVERRIDE_PATH_STYLE
|
||||
- S3_OPEN_TIMEOUT
|
||||
- S3_READ_TIMEOUT
|
||||
- S3_RETRY_LIMIT
|
||||
- S3_FORCE_SINGLE_REQUEST
|
||||
- S3_ENABLE_CHECKSUM_MODE
|
||||
- S3_STORAGE_CLASS
|
||||
- S3_MULTIPART_THRESHOLD
|
||||
- S3_PERMISSION
|
||||
- S3_BATCH_DELETE_LIMIT
|
||||
- S3_BATCH_DELETE_RETRY
|
||||
- S3_ALIAS_HOST
|
||||
secrets: &s3-secrets
|
||||
- aws_secret_access_key
|
||||
|
||||
streaming:
|
||||
environment: *s3-env
|
||||
secrets: *s3-secrets
|
||||
|
||||
sidekiq:
|
||||
environment: *s3-env
|
||||
secrets: *s3-secrets
|
||||
|
||||
secrets:
|
||||
aws_secret_access_key:
|
||||
name: ${STACK_NAME}_aws_secret_access_key_${SECRET_AWS_SECRET_ACCESS_KEY_VERSION}
|
||||
external: true
|
||||
+5
-22
@@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: tootsuite/mastodon:v4.5.0
|
||||
image: tootsuite/mastodon:v4.5.9
|
||||
command: |
|
||||
bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
|
||||
networks: &bothNetworks
|
||||
@@ -20,7 +20,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}_web.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}_web.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}_web.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.1.0+v4.5.0"
|
||||
- "coop-cloud.${STACK_NAME}.version=3.0.4+v4.5.9"
|
||||
configs: &configs
|
||||
- source: entrypoint_sh
|
||||
target: /usr/local/bin/entrypoint.sh
|
||||
@@ -129,7 +129,7 @@ services:
|
||||
- WEB_DOMAIN
|
||||
|
||||
streaming:
|
||||
image: tootsuite/mastodon-streaming:v4.5.0
|
||||
image: tootsuite/mastodon-streaming:v4.5.9
|
||||
command: node ./streaming/index.js
|
||||
configs: *configs
|
||||
entrypoint: /usr/local/bin/entrypoint_streaming.sh
|
||||
@@ -150,7 +150,7 @@ services:
|
||||
volumes: *appVolume
|
||||
|
||||
sidekiq:
|
||||
image: tootsuite/mastodon:v4.5.0
|
||||
image: tootsuite/mastodon:v4.5.9
|
||||
secrets: *secrets
|
||||
command: bundle exec sidekiq
|
||||
configs: *configs
|
||||
@@ -178,29 +178,13 @@ services:
|
||||
- POSTGRES_USER=${DB_USER}
|
||||
|
||||
redis:
|
||||
image: redis:8.2-alpine
|
||||
image: redis:8.6-alpine
|
||||
networks: *internalNetwork
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
volumes:
|
||||
- redis:/data
|
||||
|
||||
es:
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
|
||||
environment:
|
||||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
||||
- "cluster.name=es-mastodon"
|
||||
- "discovery.type=single-node"
|
||||
- "bootstrap.memory_lock=true"
|
||||
networks:
|
||||
- internal
|
||||
volumes:
|
||||
- es:/usr/share/elasticsearch/data
|
||||
ulimits:
|
||||
memlock:
|
||||
soft: -1
|
||||
hard: -1
|
||||
|
||||
secrets:
|
||||
secret_key_base:
|
||||
name: ${STACK_NAME}_secret_key_base_${SECRET_SECRET_KEY_BASE_VERSION}
|
||||
@@ -231,7 +215,6 @@ volumes:
|
||||
app:
|
||||
redis:
|
||||
postgres:
|
||||
es:
|
||||
|
||||
networks:
|
||||
internal:
|
||||
|
||||
@@ -27,6 +27,7 @@ file_env "DB_PASS"
|
||||
file_env "OTP_SECRET"
|
||||
file_env "SECRET_KEY_BASE"
|
||||
file_env "VAPID_PRIVATE_KEY"
|
||||
file_env "AWS_SECRET_ACCESS_KEY"
|
||||
file_env "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY"
|
||||
file_env "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT"
|
||||
file_env "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY"
|
||||
|
||||
@@ -28,6 +28,7 @@ file_env "SMTP_PASSWORD"
|
||||
file_env "OTP_SECRET"
|
||||
file_env "SECRET_KEY_BASE"
|
||||
file_env "VAPID_PRIVATE_KEY"
|
||||
file_env "AWS_SECRET_ACCESS_KEY"
|
||||
file_env "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY"
|
||||
file_env "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT"
|
||||
file_env "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
WARNING ⚠️: Elasticsearch is now opt-in, if you would like to continue using it, run `abra app config <app-name>` and add `COMPOSE_FILE="$COMPOSE_FILE:compose.elasticsearch.yml"`
|
||||
Reference in New Issue
Block a user