Update dockge-install.sh

option to add Immich
This commit is contained in:
tteckster 2023-11-20 07:46:08 -05:00 committed by GitHub
parent 7f6521e3c7
commit 46533c082b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -47,6 +47,16 @@ $STD curl https://raw.githubusercontent.com/louislam/dockge/master/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.yaml 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