diff --git a/hetzner/Projects/Development/neko/install.sh b/hetzner/Projects/Development/neko/install.sh index d2cef43..ec36a7b 100644 --- a/hetzner/Projects/Development/neko/install.sh +++ b/hetzner/Projects/Development/neko/install.sh @@ -7,18 +7,19 @@ apt install wget curl apache2-utils docker-compose sed -y # Images to download NEKO_IMAGES=(m1k1o/neko:firefox m1k1o/neko:vlc) +# Create directories +mkdir -p "/neko/config" + # Set environmental variables { -echo "TZ=${TZ}" -echo "NEKO_ROOMS_EPR=${NEKO_ROOMS_EPR}" -echo "NEKO_ROOMS_TRAEFIK_DOMAIN=${NEKO_ROOMS_TRAEFIK_DOMAIN}" -echo "NEKO_ROOMS_TRAEFIK_ENTRYPOINT=websecure" -echo "NEKO_ROOMS_TRAEFIK_NETWORK=neko-rooms-traefik" -echo "NEKO_ROOMS_TRAEFIK_CERTRESOLVER=lets-encrypt" -echo "NEKO_ROOMS_NEKO_IMAGES=${NEKO_IMAGES[*]}" + echo "TZ=${TZ}" + echo "NEKO_ROOMS_EPR=${NEKO_ROOMS_EPR}" + echo "NEKO_ROOMS_TRAEFIK_DOMAIN=${NEKO_ROOMS_TRAEFIK_DOMAIN}" + echo "NEKO_ROOMS_TRAEFIK_ENTRYPOINT=websecure" + echo "NEKO_ROOMS_TRAEFIK_NETWORK=neko-rooms-traefik" + echo "NEKO_ROOMS_TRAEFIK_CERTRESOLVER=lets-encrypt" + echo "NEKO_ROOMS_NEKO_IMAGES=${NEKO_IMAGES[*]}" } > /neko/.env - -mkdir -p "/neko/config" touch /neko/usersfile htpasswd -nb admin admin >> /neko/usersfile wget -O "/neko/traefik.yml" "https://raw.githubusercontent.com/m1k1o/neko-rooms/master/traefik/traefik.yml" @@ -29,8 +30,12 @@ wget -O "/neko/config/tls.yml" "https://raw.githubusercontent.com/m1k1o/neko-roo touch "/neko/acme.json" chmod 600 "/neko/acme.json" wget -O "/neko/docker-compose.yml" "https://raw.githubusercontent.com/m1k1o/neko-rooms/master/traefik/docker-compose.yml" +sed "s/attachable: \"true\"/attachable: true/" /neko/docker-compose.yml # Pull neko images for NEKO_IMAGE in "${NEKO_IMAGES[@]}"; do docker pull "${NEKO_IMAGE}" -done \ No newline at end of file +done + +docker-compose pull +docker-compose up -d \ No newline at end of file