autocommit

This commit is contained in:
leo 2024-08-31 02:26:16 +05:00
parent de6b60fa34
commit a74bbb0d02
2 changed files with 24 additions and 3 deletions

View File

@ -1,8 +1,8 @@
services:
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:8.9
restart: always
image: dpage/pgadmin4:8.11.0
restart: unless-stopped
networks:
- proxynet
env_file:
@ -19,7 +19,6 @@ services:
volumes:
- /data/secrets/${SERVER_DOMAIN}/httpauth:/httpauth
- /data/appdata/pgadmin:/var/lib/pgadmin
networks:
proxynet:
external: true

22
install.sh Normal file
View File

@ -0,0 +1,22 @@
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo -e "\033[31mThis script requires superuser rights.\033[0m"
exit 0
fi
trap 'echo -e "\033[31minstall.sh: Something went wrong\033[0m"; exit 1' ERR
set -e
export DEBIAN_FRONTEND=noninteractive
echo "Install pgadmin..."
mkdir -p /data/appdata/pgadmin
chown -R 5050:5050 /data/appdata/pgadmin
cd /data/utils
sudo bash env-gen.sh PGADMIN_DEFAULT_PASSWORD
cd /data/pgadmin
sudo docker compose up -d
trap - ERR
echo "Install pgadmin complete"