update mastodon compose, fix helperbot to snapshot only single dfdb instance
This commit is contained in:
parent
32d1e324cc
commit
26cae0116d
2 changed files with 9 additions and 57 deletions
|
|
@ -332,10 +332,8 @@ function system_backup {
|
||||||
# database
|
# database
|
||||||
postgres_backup postgres-db-1 misskey sharkey $backup_working_directory
|
postgres_backup postgres-db-1 misskey sharkey $backup_working_directory
|
||||||
# dragonflydb
|
# dragonflydb
|
||||||
redis_snapshot sharkey-dragonfly-1 6379
|
redis_snapshot sharkey-dfdb-1 6379
|
||||||
redis_snapshot sharkey-dragonfly-queue-1 6380
|
cp -r $backup_local_folder/sharkey/dfdb $backup_working_directory/sharkey/dfdb
|
||||||
redis_snapshot sharkey-dragonfly-tl-1 6381
|
|
||||||
cp -r $backup_local_folder/sharkey/dragonfly $backup_working_directory/sharkey/dragonfly
|
|
||||||
# configs, extra
|
# configs, extra
|
||||||
cp $backup_local_folder/sharkey/compose.yaml $backup_working_directory/sharkey
|
cp $backup_local_folder/sharkey/compose.yaml $backup_working_directory/sharkey
|
||||||
cp $backup_local_folder/sharkey/default.yml $backup_working_directory/sharkey
|
cp $backup_local_folder/sharkey/default.yml $backup_working_directory/sharkey
|
||||||
|
|
@ -362,8 +360,6 @@ function system_backup {
|
||||||
postgres_backup postgres-db-1 mastodon mastodon $backup_working_directory
|
postgres_backup postgres-db-1 mastodon mastodon $backup_working_directory
|
||||||
# dragonflydb
|
# dragonflydb
|
||||||
redis_snapshot mastodon-dragonfly-1 6379
|
redis_snapshot mastodon-dragonfly-1 6379
|
||||||
redis_snapshot mastodon-dragonfly-cache-1 6380
|
|
||||||
redis_snapshot mastodon-dragonfly-sidekiq-1 6381
|
|
||||||
cp -r $backup_local_folder/mastodon/dragonfly $backup_working_directory/mastodon/dragonfly
|
cp -r $backup_local_folder/mastodon/dragonfly $backup_working_directory/mastodon/dragonfly
|
||||||
# configs, extra
|
# configs, extra
|
||||||
cp $backup_local_folder/mastodon/compose.yaml $backup_working_directory/mastodon
|
cp $backup_local_folder/mastodon/compose.yaml $backup_working_directory/mastodon
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
# we use our own synth-soc fork
|
# we use our own synth-soc fork
|
||||||
image: ghcr.io/melontini/mastodon:nightly
|
image: ghcr.io/synth-download/mastodon:nightly
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env.secrets
|
- .env.secrets
|
||||||
- .env
|
- .env
|
||||||
command: bundle exec puma -C config/puma.rb
|
command: bundle exec puma -C config/puma.rb
|
||||||
|
#command: rails db:migrate
|
||||||
networks:
|
networks:
|
||||||
- masto
|
- masto
|
||||||
- ip6net
|
- ip6net
|
||||||
|
|
@ -20,10 +21,11 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
volumes:
|
||||||
- ./public/system:/mastodon/public/system
|
- ./public/system:/mastodon/public/system
|
||||||
|
- ./init/disable_ssl.rb:/mastodon/config/initializers/disable_ssl.rb:ro
|
||||||
- ./shared:/shared # this is just to allow seeing/copying emoji exports
|
- ./shared:/shared # this is just to allow seeing/copying emoji exports
|
||||||
|
|
||||||
streaming:
|
streaming:
|
||||||
image: ghcr.io/melontini/mastodon-streaming:nightly
|
image: ghcr.io/synth-download/mastodon-streaming:nightly
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env.secrets
|
- .env.secrets
|
||||||
|
|
@ -42,7 +44,7 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
image: ghcr.io/melontini/mastodon-ingress:nightly
|
image: ghcr.io/synth-download/mastodon-ingress:nightly
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env.secrets
|
- .env.secrets
|
||||||
|
|
@ -55,7 +57,7 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
sidekiq:
|
sidekiq:
|
||||||
image: ghcr.io/melontini/mastodon:nightly
|
image: ghcr.io/synth-download/mastodon:nightly
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env.secrets
|
- .env.secrets
|
||||||
|
|
@ -90,53 +92,7 @@ services:
|
||||||
DFLY_df_snapshot_format: false
|
DFLY_df_snapshot_format: false
|
||||||
DFLY_dir: '/data'
|
DFLY_dir: '/data'
|
||||||
volumes:
|
volumes:
|
||||||
- ./dragonfly/generic:/data
|
- ./dragonfly:/data
|
||||||
healthcheck:
|
|
||||||
test: "redis-cli ping"
|
|
||||||
interval: 5s
|
|
||||||
retries: 20
|
|
||||||
|
|
||||||
# cache dragonfly instance
|
|
||||||
dragonfly-cache:
|
|
||||||
image: docker.dragonflydb.io/dragonflydb/dragonfly
|
|
||||||
restart: always
|
|
||||||
ulimits:
|
|
||||||
memlock: -1
|
|
||||||
networks:
|
|
||||||
- masto
|
|
||||||
environment:
|
|
||||||
DFLY_port: 6380
|
|
||||||
DFLY_snapshot_cron: '* * * * *'
|
|
||||||
DFLY_version_check: false
|
|
||||||
DFLY_default_lua_flags: allow-undeclared-keys
|
|
||||||
DFLY_dbfilename: 'dump.rdb'
|
|
||||||
DFLY_df_snapshot_format: false
|
|
||||||
DFLY_dir: '/data'
|
|
||||||
volumes:
|
|
||||||
- ./dragonfly/cache:/data
|
|
||||||
healthcheck:
|
|
||||||
test: "redis-cli ping"
|
|
||||||
interval: 5s
|
|
||||||
retries: 20
|
|
||||||
|
|
||||||
# sidekiq dragonfly instance
|
|
||||||
dragonfly-sidekiq:
|
|
||||||
image: docker.dragonflydb.io/dragonflydb/dragonfly
|
|
||||||
restart: always
|
|
||||||
ulimits:
|
|
||||||
memlock: -1
|
|
||||||
networks:
|
|
||||||
- masto
|
|
||||||
environment:
|
|
||||||
DFLY_port: 6381
|
|
||||||
DFLY_snapshot_cron: '* * * * *'
|
|
||||||
DFLY_version_check: false
|
|
||||||
DFLY_default_lua_flags: allow-undeclared-keys
|
|
||||||
DFLY_dbfilename: 'dump.rdb'
|
|
||||||
DFLY_df_snapshot_format: false
|
|
||||||
DFLY_dir: '/data'
|
|
||||||
volumes:
|
|
||||||
- ./dragonfly/sidekiq:/data
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "redis-cli ping"
|
test: "redis-cli ping"
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue