autocommit
This commit is contained in:
parent
396a7bd4f4
commit
0d1b79ff85
@ -1,8 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
traefik:
|
traefik:
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
image: traefik:v3.0.1
|
image: traefik:v3.1.2
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env
|
- /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env
|
||||||
command:
|
command:
|
||||||
|
23
install.sh
Normal file
23
install.sh
Normal 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"
|
Loading…
Reference in New Issue
Block a user