mirror of https://github.com/tteck/Proxmox.git
Compare commits
5 Commits
7f6521e3c7
...
6c643e39d1
Author | SHA1 | Date |
---|---|---|
|
6c643e39d1 | |
|
cd4faadeb6 | |
|
22dd71822e | |
|
f3b501d37a | |
|
46533c082b |
13
ct/dockge.sh
13
ct/dockge.sh
|
@ -19,7 +19,7 @@ EOF
|
||||||
header_info
|
header_info
|
||||||
echo -e "Loading..."
|
echo -e "Loading..."
|
||||||
APP="Dockge"
|
APP="Dockge"
|
||||||
var_disk="8"
|
var_disk="18"
|
||||||
var_cpu="2"
|
var_cpu="2"
|
||||||
var_ram="2048"
|
var_ram="2048"
|
||||||
var_os="debian"
|
var_os="debian"
|
||||||
|
@ -53,11 +53,12 @@ function default_settings() {
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/dockge ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_info "Updating ${APP} LXC"
|
msg_info "Updating ${APP}"
|
||||||
apt-get update &>/dev/null
|
cd /opt/dockge
|
||||||
apt-get -y upgrade &>/dev/null
|
docker compose pull
|
||||||
msg_ok "Updated ${APP} LXC"
|
docker compose up -d
|
||||||
|
msg_ok "Updated ${APP}"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,12 +41,22 @@ chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
|
||||||
msg_ok "Installed Docker Compose $DOCKER_COMPOSE_LATEST_VERSION"
|
msg_ok "Installed Docker Compose $DOCKER_COMPOSE_LATEST_VERSION"
|
||||||
|
|
||||||
msg_info "Installing Dockge"
|
msg_info "Installing Dockge"
|
||||||
mkdir -p /opt/stacks /opt/dockge
|
mkdir -p /opt/{dockge,stacks}
|
||||||
|
wget -q -O /opt/dockge/compose.yaml https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml
|
||||||
cd /opt/dockge
|
cd /opt/dockge
|
||||||
$STD curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output compose.yaml
|
|
||||||
$STD docker compose up -d
|
$STD docker compose up -d
|
||||||
msg_ok "Installed Dockge"
|
msg_ok "Installed Dockge"
|
||||||
|
|
||||||
|
read -r -p "Would you like to add Immich? <y/N> " prompt
|
||||||
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||||
|
msg_info "Adding Immich compose.yaml"
|
||||||
|
mkdir -p /opt/stacks/immich
|
||||||
|
wget -q -O /opt/stacks/immich/compose.yaml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
|
||||||
|
wget -q -O /opt/stacks/immich/.env https://github.com/immich-app/immich/releases/latest/download/example.env
|
||||||
|
wget -q -O /opt/stacks/immich/hwaccel.yml https://github.com/immich-app/immich/releases/latest/download/hwaccel.yml
|
||||||
|
msg_ok "Added Immich compose.yaml"
|
||||||
|
fi
|
||||||
|
|
||||||
read -r -p "Would you like to add Home Assistant? <y/N> " prompt
|
read -r -p "Would you like to add Home Assistant? <y/N> " prompt
|
||||||
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||||
msg_info "Adding Home Assistant compose.yaml"
|
msg_info "Adding Home Assistant compose.yaml"
|
||||||
|
@ -61,6 +71,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /dev:/dev
|
- /dev:/dev
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- ha_config:/config
|
- ha_config:/config
|
||||||
network_mode: host
|
network_mode: host
|
||||||
image: ghcr.io/home-assistant/home-assistant:stable
|
image: ghcr.io/home-assistant/home-assistant:stable
|
||||||
|
|
Loading…
Reference in New Issue