28 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
3wc
d9de83eb06 chore: publish 2.1.1+v4.5.1 release
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2025-11-15 21:05:44 -05:00
3wc
f0d07bcd71 chore: publish 2.1.0+v4.5.0 release
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2025-11-15 20:47:22 -05:00
3wc
3bb4274ae4 chore: publish 2.0.1+v4.4.8 release
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2025-10-21 13:42:57 -04:00
683fb2d24d Merge pull request 'chore(deps): update tootsuite/mastodon docker tag to v4.4.8' (#24) from renovate/tootsuite-mastodon-4.x into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #24
2025-10-21 17:36:54 +00:00
38cffa745a Merge pull request 'chore(deps): update tootsuite/mastodon-streaming docker tag to v4.4.8' (#23) from renovate/tootsuite-mastodon-streaming-4.x into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #23
2025-10-21 17:36:46 +00:00
3a5d28394f chore(deps): update tootsuite/mastodon docker tag to v4.4.8
Some checks failed
continuous-integration/drone/pr Build is failing
2025-10-21 14:35:20 +00:00
2a36d928d9 chore(deps): update tootsuite/mastodon-streaming docker tag to v4.4.8
Some checks failed
continuous-integration/drone/pr Build is failing
2025-10-21 14:05:23 +00:00
3wc
23a71ea65b docs: Add maintainance info
[ci skip]
2025-10-19 12:56:50 -04:00
3wc
a6749ed224 chore: publish 2.0.0+v4.4.7 release
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2025-10-19 11:37:28 -04:00
3b51e3c602 Merge pull request 'chore(deps): update tootsuite/mastodon-streaming docker tag to v4.4.7' (#20) from renovate/tootsuite-mastodon-streaming-4.x into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #20
2025-10-19 15:33:16 +00:00
99a3c12d2d chore(deps): update tootsuite/mastodon-streaming docker tag to v4.4.7
Some checks failed
continuous-integration/drone/pr Build is failing
2025-10-19 15:33:04 +00:00
408d3d7d70 Merge pull request 'chore(deps): update tootsuite/mastodon docker tag to v4.4.7' (#19) from renovate/tootsuite-mastodon-4.x into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #19
2025-10-19 15:32:54 +00:00
3d27b65c84 chore(deps): update tootsuite/mastodon docker tag to v4.4.7
Some checks failed
continuous-integration/drone/pr Build is failing
2025-10-19 15:32:45 +00:00
3wc
e1d47b1b88 fix: Switch docker volume path for postgres 18+
Some checks failed
continuous-integration/drone/push Build is failing
2025-10-19 10:47:57 -04:00
3wc
5f6028ef17 Upgrade postgres to 18 2025-10-18 18:24:51 -04:00
3wc
1c98e0d790 chore: Switch to pgautoupgrade image
Some checks failed
continuous-integration/drone/push Build is failing
2025-10-18 18:09:36 -04:00
d7086e8b4a Merge pull request 'chore: Configure Renovate' (#18) from renovate/configure into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #18
2025-10-18 20:30:03 +00:00
3ac2b9a2a3 Add renovate.json
Some checks failed
continuous-integration/drone/pr Build is failing
2025-10-18 20:25:19 +00:00
3wc
69b6d7f664 chore: publish 1.3.0+v4.4.4 release
Some checks failed
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2025-09-16 10:16:32 -04:00
3wc
66aa71c4e1 chore: publish 1.2.0+v4.4.3 release
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is passing
2025-08-06 12:54:01 +01:00
3wc
0a0273306e Minor fixes to MAX_CHARS command:
Some checks failed
continuous-integration/drone/push Build is failing
2025-07-27 15:58:01 +01:00
52a0626ec8 Merge pull request 'remove old setup script' (#17) from benjaminlyng/mastodon:chore/remove_old_setup_script into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #17
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
2025-06-09 10:31:07 +00:00
c05f3c615a remove old setup script
Some checks failed
continuous-integration/drone/pr Build is failing
2025-06-09 06:18:34 +02:00
8 changed files with 73 additions and 19 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,8 +3,10 @@
> Your self-hosted, globally interconnected microblogging community
<!-- metadata -->
* **Maintainers**: `@3wordchant` (Matrix: `@3wc:autonomic.zone`), `Benjamin` (Matrix: `@benjaminlj:matrix.org`)
* **Status**: `stable`
* **Category**: Apps
* **Status**: 1
* **Features**: 1
* **Image**: [`tootsuite/mastodon`](https://hub.docker.com/r/tootsuite/mastodon)
* **Healthcheck**: No
* **Backups**: No
@ -26,7 +28,6 @@ the [`abra.sh`](./abra.sh) for more.
1. `abra app secret insert <domain> smtp_password v1 <password>`
1. `abra app config <domain>` (uncomment SMTP details)
1. `abra app deploy <domain>`
1. `abra app cmd <domain> streaming setup`
Then, on your host (outside of the containers), you'll need to fix permissions
for the volume (see [#10](https://git.coopcloud.tech/coop-cloud/mastodon/issues/10)):

View File

@ -66,12 +66,6 @@ shell() {
bash $@
}
setup() {
environment
RAILS_ENV=production bundle exec rake db:setup
}
secrets() {
set -e

View File

@ -9,4 +9,4 @@ services:
# [0]: See https://github.com/mastodon/mastodon/pull/30091
user: root
command: >
/bin/sh -c 'set -x && ls && sed -i -e "s/500/$MAX_CHARS/g" app/javascript/mastodon/features/compose/components/compose_form.jsx && sed -i -e "s/500/$MAX_CHARS/g" app/validators/status_length_validator.rb && RAILS_ENV=production && rm -f /mastodon/tmp/pids/server.pid && su -c "bundle exec rails s -p 3000"'
/bin/sh -c 'set -x && ls && sed -i -e "s/500/$MAX_CHARS/g" app/javascript/mastodon/features/compose/components/compose_form.jsx && sed -i -e "s/500/$MAX_CHARS/g" app/validators/status_length_validator.rb && rm -f /mastodon/tmp/pids/server.pid && su -c "RAILS_ENV=production bundle exec rails s -p 3000"'

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.3.8
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=1.1.0+v4.3.8"
- "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.3.8
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.3.8
image: tootsuite/mastodon:v4.5.3
secrets: *secrets
command: bundle exec sidekiq
configs: *configs
@ -164,11 +164,12 @@ services:
environment: *env
db:
image: postgres:15.12-alpine
image: pgautoupgrade/pgautoupgrade:18-alpine
networks: &internalNetwork
- internal
volumes:
- postgres:/var/lib/postgresql/data
- postgres:/var/lib/postgresql
secrets:
- db_password
environment:
@ -177,7 +178,7 @@ services:
- POSTGRES_USER=${DB_USER}
redis:
image: redis:7.4-alpine
image: redis:8.4-alpine
networks: *internalNetwork
healthcheck:
test: ["CMD", "redis-cli", "ping"]

1
release/2.0.0+v4.4.7 Normal file
View File

@ -0,0 +1 @@
This release includes several Postgres major version upgrades; this should work automatically, but please take extra care to make a database backup before upgrading!

6
renovate.json Normal file
View File

@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}