π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[draft] Docs for self hosting ente without docker (#3831)
mangesh85ae97c459fe
diff --git a/docs/docs/.vitepress/sidebar.ts b/docs/docs/.vitepress/sidebar.tsindex 5f85cd63f0..2cf669976f 100644--- a/docs/docs/.vitepress/sidebar.ts+++ b/docs/docs/.vitepress/sidebar.ts@@ -227,10 +227,11 @@ export const sidebar = [collapsed: true,items: [{ text: "Getting started", link: "/self-hosting/" },+ { text: "System requirements", link: "/self-hosting/guides/system-requirements", },{text: "Guides",items: [- { text: "Introduction", link: "/self-hosting/guides/" },+ { text: "Introduction", link: "/self-hosting/guides/" },{text: "Connect to custom server",link: "/self-hosting/guides/custom-server/",@@ -248,10 +249,6 @@ export const sidebar = [text: "Mobile build",link: "/self-hosting/guides/mobile-build",},- {- text: "System requirements",- link: "/self-hosting/guides/system-requirements",- },{text: "Configuring S3",link: "/self-hosting/guides/configuring-s3",@@ -264,6 +261,10 @@ export const sidebar = [text: "DB migration",link: "/self-hosting/guides/db-migration",},+ {+ text: "Hosting Ente without Docker",+ link: "/self-hosting/guides/standalone-ente",+ },],},{diff --git a/docs/docs/self-hosting/guides/standalone-ente.md b/docs/docs/self-hosting/guides/standalone-ente.mdnew file mode 100644index 0000000000..d3e136fb04--- /dev/null+++ b/docs/docs/self-hosting/guides/standalone-ente.md@@ -0,0 +1,89 @@+---+title: Installing Ente Standalone (without Docker)+description: Installing and setting up Ente standalone without docker.+---++# Installing and Deploying Ente Standalone (without Docker)++## Running Museum (Ente's server) without Docker++First, start by installing all the dependencies to get your machine ready for development.++```sh+# For MacOS+brew tap homebrew/core+brew update+brew install go++# For Ubuntu based distros+sudo apt update && sudo apt upgrade+sudo apt install golang-go+```++Alternatively, you can also download the latest binaries from ['All Release'](https://go.dev/dl/) page from the official website.++```sh+brew install postgres@15+# Link the postgres keg+brew link postgresql@15++brew install libsodium++# For Ubuntu based distros+sudo apt install postgresql+sudo apt install libsodium23 libsodium-dev+```++The package `libsodium23` might be installed already in some cases.++Installing pkg-config++```sh+brew install pkg-config++# For Ubuntu based distros+sudo apt install pkg-config+```++## Starting Postgres++### With pg_ctl++```sh+pg_ctl -D /usr/local/var/postgres -l logfile start+```++Dependeing on the Operating System type the path for postgres binary or configuration file might be different, please check if the command keeps failing for you.++Ideally, if you are on a Linux system with systemd as the init. You can also start postgres as a systemd service. After Installation execute the following commands:++```sh+sudo systemctl enable postgresql+sudo systemctl daemon-reload && sudo systemctl start postgresql+```++### Create user++```sh+createuser -s postgres+```++## Start Museum++```+export ENTE_DB_USER=postgres+cd ente/server+go run cmd/museum/main.go+```++For live reloads, install [air](https://github.com/air-verse/air#installation). Then you can just call air after declaring the required environment variables. For example,++```+ENTE_DB_USER=ente_user+air+```++Once you are done with setting and running Museum, all you are left to do is run the web app and reverse_proxy it with a webserver. You can check the following resources for Deploying your web app.++1. [Hosting the Web App](https://help.ente.io/self-hosting/guides/web-app).+2. [Running Ente Web app as a systemd Service](https://gist.github.com/mngshm/72e32bd483c2129621ed0d74412492fd)