> ## Documentation Index
> Fetch the complete documentation index at: https://blog.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Ente: end-to-end encrypted photo backup on your VPS

> Self-host Ente Photos on a VPS: an open source, end-to-end encrypted Google Photos alternative. Docker Compose setup with HTTPS storage, by OnetSolutions.

![Ente Photos: albums and photo grid on a phone, a computer and a tablet](https://mintcdn.com/onetsolutions-blog/8r19wEIExfbgji_2/images/2026/12/ente.webp?fit=max\&auto=format\&n=8r19wEIExfbgji_2\&q=85\&s=9d384e8c44a75e536a07a9cae8618f17)

*Published on December 2, 2026*

Your photos sit with a provider that can read them, or on a phone you can lose: Ente Photos, self-hosted on your VPS, backs them up with end-to-end encryption.

## What Ente does for you

* **Back up** the albums you choose from your iOS or Android phone, in original quality, and whole folders from the desktop app.
* **Keep** your photos unreadable to the server: they are encrypted before upload. The code and cryptography have been audited, by Cure53 among others.
* **Find** a photo by face or by description ("beach", "birthday cake"): the analysis runs on your device, not on the VPS.
* **Share** an album through a public link, with a password and an expiry date, with no account needed for your family and friends.
* **Export** everything at any time: the desktop app continuously exports your library to a local folder.

## At a glance

| | |
| - | - |
| License | AGPL-3.0 |
| Language | Dart (apps), Go (the "museum" server) |
| Latest version | photos-v1.3.71, released on November 30, 2026: this is the Photos app. The server and web images have no version number, their tag is a commit |
| GitHub stars | 30,733 as of December 2, 2026 |
| Minimum resources | 1 GB of RAM and 1 CPU core according to the docs. Disk depends on your photo library |
| Repository | [github.com/ente/ente](https://github.com/ente/ente) |

## Install Ente on your VPS

Prerequisites: a Debian or Ubuntu VPS with [Docker](https://help.onetsolutions.net/tutorials/how-to-install-docker) and Docker Compose 2.30 or later, ports 80 and 443 open, and four DNS `A` records pointing to the VPS: `api`, `web`, `albums` and `s3` under `ente.example.com`. Replace that domain with yours in every file.

> [!NOTE]
>
> Browsers and phones upload photos straight to the S3 storage, using a signed URL the server hands them. The storage address must therefore be reachable by them and by the server alike. Hence the `s3` domain, instead of the official script's `localhost:3200`.

Switch to root and create the service directory. Run the following commands from there:

```bash theme={null}
sudo -i
mkdir -p /opt/ente
chmod 700 /opt/ente
cd /opt/ente
```

Generate the secrets, with the same commands as the official install script:

```bash theme={null}
(
umask 077
cat > .env <<EOF
PG_PASSWORD=$(head -c 21 /dev/urandom | base64 | tr -d '\n')
S3_USER=minio-user-$(head -c 6 /dev/urandom | base64 | tr -d '\n')
S3_PASSWORD=$(head -c 21 /dev/urandom | base64 | tr -d '\n')
KEY_ENCRYPTION=$(head -c 32 /dev/urandom | base64 | tr -d '\n')
KEY_HASH=$(head -c 64 /dev/urandom | base64 | tr -d '\n')
JWT_SECRET=$(head -c 32 /dev/urandom | base64 | tr -d '\n' | tr '+/' '-_')
EOF
)
```

This `compose.yaml` follows the one from the official script, with pinned images, ports limited to `127.0.0.1`, automatic restarts and a single bucket: the other two are only for replication. The `socat` service is gone, since the docs only require it for `localhost:3200`. Silo is a MinIO fork; its web console is not published.

```yaml theme={null}
# /opt/ente/compose.yaml
services:
  museum:
    image: ghcr.io/ente/server:c2e571c599222ef6f8349dcc638bf23e0d885e21
    restart: unless-stopped
    ports:
      - 127.0.0.1:8080:8080 # API
    depends_on:
      postgres:
        condition: service_healthy
    environment:
      ENTE_DB_PASSWORD: ${PG_PASSWORD}
      ENTE_S3_B2_EU_CEN_KEY: ${S3_USER}
      ENTE_S3_B2_EU_CEN_SECRET: ${S3_PASSWORD}
      ENTE_KEY_ENCRYPTION: ${KEY_ENCRYPTION}
      ENTE_KEY_HASH: ${KEY_HASH}
      ENTE_JWT_SECRET: ${JWT_SECRET}
    volumes:
      - ./museum.yaml:/museum.yaml:ro
      - ./data:/data:ro
    healthcheck:
      test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/ping"]
      interval: 60s
      timeout: 5s
      retries: 3
      start_period: 120s

  web:
    image: ghcr.io/ente/web:41059c2f85fc820fb3e929ff9cfee35809078a67
    restart: unless-stopped
    ports:
      - 127.0.0.1:3000:3000 # Photos web app
      - 127.0.0.1:3002:3002 # Public albums
    environment:
      ENTE_API_ORIGIN: https://api.ente.example.com

  postgres:
    image: postgres:15.20
    restart: unless-stopped
    environment:
      POSTGRES_USER: pguser
      POSTGRES_PASSWORD: ${PG_PASSWORD}
      POSTGRES_DB: ente_db
    healthcheck:
      test: pg_isready -q -d ente_db -U pguser
      start_period: 40s
      start_interval: 1s
    volumes:
      - postgres-data:/var/lib/postgresql/data

  minio:
    image: pgsty/silo:RELEASE.2026-11-12T00-00-00Z
    restart: unless-stopped
    ports:
      - 127.0.0.1:3200:3200 # S3 API
    environment:
      MINIO_ROOT_USER: ${S3_USER}
      MINIO_ROOT_PASSWORD: ${S3_PASSWORD}
    command: server /data --address ":3200" --console-address ":3201"
    volumes:
      - minio-data:/data
    post_start:
      - command: |
          sh -c '
          while ! mc alias set h0 http://minio:3200 ${S3_USER} ${S3_PASSWORD} 2>/dev/null
          do
            echo "Waiting for minio..."
            sleep 0.5
          done

          cd /data
          mc mb -p b2-eu-cen
          '

volumes:
  postgres-data:
  minio-data:
```

The `museum.yaml` file configures the server. It holds no secrets: they come from the `ENTE_*` variables in the Compose file.

```yaml theme={null}
# /opt/ente/museum.yaml
db:
  host: postgres
  port: 5432
  name: ente_db
  user: pguser

s3:
  # Storage reached over HTTPS
  are_local_buckets: false
  # Needed with MinIO: the bucket is in the URL path
  use_path_style_urls: true
  b2-eu-cen:
    endpoint: s3.ente.example.com
    region: eu-central-2
    bucket: b2-eu-cen

apps:
  public-albums: https://albums.ente.example.com

internal:
  disable-registration: false
```

Start the stack:

```bash theme={null}
docker compose up -d
```

Then install Caddy, the reverse proxy the docs recommend. It gets and renews the HTTPS certificates by itself:

```bash theme={null}
apt install caddy
```

Replace the contents of the `Caddyfile`. It follows the docs, with one more block for the storage:

```text theme={null}
# /etc/caddy/Caddyfile
api.ente.example.com {
    reverse_proxy http://localhost:8080
}

web.ente.example.com {
    reverse_proxy http://localhost:3000
}

albums.ente.example.com {
    reverse_proxy http://localhost:3002
}

s3.ente.example.com {
    # Storage admin API: closed from the Internet
    @admin path /minio/*
    respond @admin 403
    reverse_proxy http://localhost:3200
}
```

Enable Caddy and reload its configuration:

```bash theme={null}
systemctl enable caddy
systemctl reload caddy
```

## First steps

1. **Create your account.** Open `https://web.ente.example.com` and click **Signup**. Without SMTP, the verification code shows up in the logs, on a line reading `Skipping sending email to … Verification code: 123456`: read it with `docker compose logs museum`. Keep the recovery key: without it, a forgotten password makes the photos unreadable.

2. **Connect your phone.** Install Ente Photos, tap the onboarding screen 7 times and enter `https://api.ente.example.com`. Sign in, then choose the albums to back up.

3. **Raise the quota.** An account gets 10 GB by default. With the [Ente CLI](https://ente.com/help/cli/install) installed on your computer, the admin account lifts that limit; the first account created is admin automatically.

These two commands connect the CLI to your server, then set the account to 100 TB, without adding any disk to the VPS:

```bash theme={null}
ente account login --account home-server --app photos --host https://api.ente.example.com
ente admin user update-subscription you@example.com --no-limit --account home-server
```

## Check that it works

Query the server, then the storage, through their public domains:

```bash theme={null}
curl https://api.ente.example.com/ping
curl https://s3.ente.example.com/b2-eu-cen/
```

The first response contains `"message":"pong"`. The second is an `AccessDenied` XML: the storage answers and turns anonymous visitors away.

Then upload a photo from your phone. If it fails, look for `OBJECT_SIZE_FETCH_FAILED` in `docker compose logs museum`: the server cannot reach the S3 `endpoint`. The [troubleshooting page](https://ente.com/help/self-hosting/troubleshooting/uploads) also covers 403 and CORS errors.

## Secure access

Once your accounts exist, close registrations and set the administrator. First, read their `user_id`:

```bash theme={null}
docker compose exec postgres psql -U pguser -d ente_db -c "SELECT * from users;"
```

Replace the `internal` section at the end of `museum.yaml`, with your own ID:

```yaml theme={null}
internal:
  admin: 1580559962386438
  disable-registration: true
```

Recreate the containers to apply the change; the data stays in the volumes:

```bash theme={null}
docker compose down && docker compose up -d
```

In the [console firewall](https://help.onetsolutions.net/vps/firewall), allow only SSH, 80 and 443 inbound. Ports 8080, 3000, 3002 and 3200 listen on the VPS only.

> [!WARNING]
>
> Back up `.env`, `museum.yaml` and the `postgres-data` and `minio-data` volumes together. Without the database, which holds the file keys, the encrypted photos are useless.

## Limits and alternatives

Search by face or description is enabled in the mobile and desktop apps, not in the web app. The docs present the bundled MinIO storage as a means of quick testing: for a large library, keep an exported copy or plug in external S3 storage.

| Alternative | Difference |
| - | - |
| [Immich](https://github.com/immich-app/immich) | Mobile and web apps, with faces and search analyzed on the server, in a dedicated container (AGPL-3.0). |
| [PhotoPrism](https://github.com/photoprism/photoprism) | A web app that labels and organizes photos, reachable over WebDAV (AGPL-3.0). |
| [LibrePhotos](https://github.com/LibrePhotos/librephotos) | Scans your existing folders on the server; 8 GB of RAM or more recommended (MIT). |

## Going further

* [Ente self-hosting documentation](https://ente.com/help/self-hosting/): [object storage](https://ente.com/help/self-hosting/administration/object-storage), [users](https://ente.com/help/self-hosting/administration/users), [backups](https://ente.com/help/self-hosting/administration/backup) and [upgrades](https://ente.com/help/self-hosting/installation/upgrade)
* [VPS firewall](https://help.onetsolutions.net/vps/firewall): open only the ports you need
* [VPS backup](https://help.onetsolutions.net/vps/backup): protect the database and the photos

No VPS at OnetSolutions yet? [Pick yours](https://onetsolutions.net) and keep your photos under your own roof.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.