8 Commits
add/s3 ... main

Author SHA1 Message Date
3wc
b6a5ea548f chore: publish 3.0.0+v4.5.4 release
Some checks failed
continuous-integration/drone/push Build is failing
2026-01-10 14:37:54 -05:00
f0cce1ffad Merge pull request 'Pass through AWS_SECRET_ACCESS_KEY' (#37) from fix/missing-aws-key-env into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #37
Reviewed-by: ammaratef45 <ammaratef45@proton.me>
2026-01-08 22:46:10 +00:00
5b2d3845db Pass through AWS_SECRET_ACCESS_KEY
Some checks failed
continuous-integration/drone/pr Build is failing
2026-01-07 23:05:38 +00:00
9d5927f60a Merge pull request 'Move elasticsearch into separate compose file' (#33) from change/es-compose into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #33
Reviewed-by: ammaratef45 <ammaratef45@proton.me>
2026-01-04 22:18:59 +00:00
faf931a91a Set ES_* vars to fixed values
Some checks failed
continuous-integration/drone/pr Build is failing
2026-01-04 11:09:41 +00:00
f4f105aea6 Remove elasticsearch from compose.yml 2026-01-04 10:58:29 +00:00
a8cf0fd940 Move elasticsearch into separate compose file
Some checks failed
continuous-integration/drone/pr Build is failing
2026-01-03 11:04:09 +00:00
7f1ba44869 Merge pull request 'Add s3 configuration options' (#32) from add/s3 into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #32
2026-01-02 21:55:27 +00:00
7 changed files with 45 additions and 26 deletions

View File

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

View File

@ -1,5 +1,5 @@
export ENTRYPOINT_CONF_VERSION=v6
export ENTRYPOINT_STREAMING_CONF_VERSION=v1
export ENTRYPOINT_CONF_VERSION=v7
export ENTRYPOINT_STREAMING_CONF_VERSION=v2
grep=grep
if ! $grep -P --version 2>/dev/null 1>/dev/null
@ -40,6 +40,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"

34
compose.elasticsearch.yml Normal file
View File

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

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: tootsuite/mastodon:v4.5.3
image: tootsuite/mastodon:v4.5.4
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.3+v4.5.3"
- "coop-cloud.${STACK_NAME}.version=3.0.0+v4.5.4"
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.3
image: tootsuite/mastodon-streaming:v4.5.4
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.3
image: tootsuite/mastodon:v4.5.4
secrets: *secrets
command: bundle exec sidekiq
configs: *configs
@ -185,22 +185,6 @@ services:
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:

View File

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

View File

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

1
release/3.0.0+v4.5.4 Normal file
View File

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