Skip to content

Instantly share code, notes, and snippets.

View ksonney's full-sized avatar

Kevin Sonney ksonney

View GitHub Profile
@ksonney
ksonney / docker-compose.yml
Created November 15, 2022 23:34
My Mastodon docker-compose.yml file
version: '3'
services:
db:
restart: always
image: postgres:14-alpine
shm_size: 256mb
networks:
- internal_network
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
@ksonney
ksonney / new_masto_release.sh
Created November 15, 2022 23:31
Mastodon Update/Upgrade script
#!/bin/bash
# This script works on the theory that you use a tagged image in your docker-compose.yaml
# i.e. "image: tootsuite/mastodon:v4.0.2"
# Make a database backup
docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > pre-4-0-2.dump
# replace the old tag with the new tag
sed -s 's/v4.0.1/v4.0.2/g' -iv4.0.1 docker-compose.yml
@ksonney
ksonney / gist:11404059
Created April 29, 2014 15:42
keybase.md
### Keybase proof
I hereby claim:
* I am ksonney on github.
* I am ksonney (https://keybase.io/ksonney) on keybase.
* I have a public key whose fingerprint is 320C 0336 3BC4 13EC 4AEC 6AF2 525F CED7 7BB6 12C9
To claim this, I am signing this object: