5 Commits

Author SHA1 Message Date
0004866d6b Add s3 configuration options
Some checks failed
continuous-integration/drone/pr Build is failing
2025-12-28 18:31:35 +00:00
3wc
849d8ba9a7 chore: publish 2.1.3+v4.5.3 release
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2025-12-09 13:21:43 -05:00
3wc
7846559007 chore: publish 2.1.2+v4.5.2 release
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2025-12-09 13:20:14 -05:00
53ea5afb5b Merge pull request 'chore: add benjaminlj as maintainer' (#27) from benjaminlyng/mastodon:chore/add_maintainer into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #27
2025-11-18 20:45:35 +00:00
f24aa11ddc chore: add benjaminlj as maintainer
Some checks failed
continuous-integration/drone/pr Build is failing
2025-11-18 20:16:05 +01:00
4 changed files with 60 additions and 9 deletions

View File

@ -86,6 +86,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 +127,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 +138,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
# =======================

View File

@ -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`)
* **Status**: `stable`
* **Category**: Apps
* **Features**: 1

42
compose.s3.yml Normal file
View File

@ -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

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: tootsuite/mastodon:v4.5.1
image: tootsuite/mastodon:v4.5.3
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.1+v4.5.1"
- "coop-cloud.${STACK_NAME}.version=2.1.3+v4.5.3"
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.1
image: tootsuite/mastodon-streaming:v4.5.3
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.1
image: tootsuite/mastodon:v4.5.3
secrets: *secrets
command: bundle exec sidekiq
configs: *configs
@ -178,7 +178,7 @@ services:
- POSTGRES_USER=${DB_USER}
redis:
image: redis:8.2-alpine
image: redis:8.4-alpine
networks: *internalNetwork
healthcheck:
test: ["CMD", "redis-cli", "ping"]