diff --git a/server/.gitignore b/server/.gitignore index 088f4ae0bc..e7f5bda723 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -8,4 +8,5 @@ tmp/** museum.yaml bin/** data/ -__debug_bin* \ No newline at end of file +my-ente/ +__debug_bin* diff --git a/server/hello.sh b/server/hello.sh new file mode 100755 index 0000000000..28ec583f96 --- /dev/null +++ b/server/hello.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Ente self-host quickstart helper script. +# +# Usage: +# sh -c "$(curl -fsSL https://raw.githubusercontent.com/ente-io/ente/HEAD/server/hello.sh)" +# +# Docs: +# https://github.com/ente-io/ente/blob/main/server/quickstart/README.md + +if test -d my-ente +then + printf "ERROR: A directory named 'my-ente' already exists.\n" + printf " Aborting script to avoid accidentally overwriting user data.\n" + exit 1 +fi + +printf "\n - \033[1mH E L L O\033[0m - \033[1;32mE N T E\033[0m -\n\n" + +mkdir my-ente && cd my-ente +printf " \033[1;32mE\033[0m Created directory my-ente\n" + +curl -fsSOL https://raw.githubusercontent.com/ente-io/ente/HEAD/server/quickstart/compose.yaml +printf " \033[1;32mN\033[0m Fetched compose.yaml\n" + +touch museum.yaml +printf " \033[1;32mT\033[0m Created museum.yaml\n" + +printf " \033[1;32mE\033[0m Starting docker compose\n" +printf "\nAfter the cluster has started, open web app at http://localhost:3000\n" +printf "For more details, see https://github.com/ente-io/ente/blob/main/server/quickstart/README.md\n\n" + +sleep 1 + +docker compose up diff --git a/server/quickstart/compose.yaml b/server/quickstart/compose.yaml index adcb23167c..910d97bf9c 100644 --- a/server/quickstart/compose.yaml +++ b/server/quickstart/compose.yaml @@ -25,8 +25,7 @@ services: command: "TCP-LISTEN:3200,fork,reuseaddr TCP:minio:3200" web: - # image: ghcr.io/ente-io/web - image: web-test:latest # WIP + image: ghcr.io/ente-io/web # Uncomment what you need to tweak. ports: - 3000:3000 # Photos web app