autocommit

This commit is contained in:
leo 2024-08-31 02:26:14 +05:00
parent 396a7bd4f4
commit 0d1b79ff85
2 changed files with 25 additions and 2 deletions

View File

@ -1,8 +1,8 @@
services:
traefik:
container_name: traefik
image: traefik:v3.0.1
restart: always
image: traefik:v3.1.2
restart: unless-stopped
env_file:
- /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env
command:

23
install.sh Normal file
View File

@ -0,0 +1,23 @@
#!/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
SECRETS_PATH=/data/secrets/$SERVER_DOMAIN/$SERVER_DOMAIN.env
source $SECRETS_PATH
echo "Install traefik..."
cd /data/utils
bash global-env.sh TRAEFIK_LOG_LEVEL $TRAEFIKLOGLEVEL
cd /data/traefik
sudo docker compose up -d
trap - ERR
echo "Install traefik complete"