This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
restart: always | |
image: postgres:14-alpine | |
shm_size: 256mb | |
networks: | |
- internal_network | |
healthcheck: | |
test: ['CMD', 'pg_isready', '-U', 'postgres'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |