mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-08 17:34:16 +00:00
8abbd56400
* Switch PostgreSQL container to use pgautoupgrade This handles automatically upgrading the data files to newer versions of PostgreSQL. * Fixing other uses of postgres:16-alpine image. * Simplifying upgrade scripts. --------- Co-authored-by: Dessalines <tyhou13@gmx.com>
9 lines
237 B
Bash
Executable file
9 lines
237 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
echo "Updating docker-compose to use postgres version 16."
|
|
sudo sed -i "s/image: .*postgres:.*/image: pgautoupgrade\/pgautoupgrade:16-alpine/" ./docker-compose.yml
|
|
|
|
echo "Starting up lemmy..."
|
|
sudo docker-compose up -d
|