Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLOUD_MODE not working #3291

Open
the-leonat opened this issue Mar 5, 2025 · 5 comments
Open

CLOUD_MODE not working #3291

the-leonat opened this issue Mar 5, 2025 · 5 comments

Comments

@the-leonat
Copy link

the-leonat commented Mar 5, 2025

Describe the Bug

Hello,

im trying to get env variable CLOUD_MODE to work without success. I would expect the setting to disable websites, users and teams as stated in the docs. I do run umami with docker-compose, where I tried a custom build, with CLOUD_MODE as a build variable. All with no success.

I also tried CLOUD_MODE=1, CLOUD_MODE="1", CLOUD_MODE=0, CLOUD_MODE="", CLOUD_MODE=

services:
  umami:
    build:
      context: 'https://github.com/umami-software/umami.git'
      args:
        - CLOUD_MODE=1
        - DATABASE_TYPE=postgres
    image: 'umami:postgresql-latest-custom'
    pull_policy: never
    environment:
      - SERVICE_FQDN_UMAMI_3000
      - 'DATABASE_URL=postgres://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql:5432/$POSTGRES_DB'
      - DATABASE_TYPE=postgres
      - APP_SECRET=$SERVICE_PASSWORD_64_UMAMI
      - CLOUD_MODE=1
    depends_on:
      postgresql:
        condition: service_healthy
    healthcheck:
      test:
        - CMD
        - curl
        - '-f'
        - 'http://127.0.0.1:3000/api/heartbeat'
      interval: 5s
      timeout: 20s
      retries: 10
  postgresql:
    image: 'postgres:16-alpine'
    volumes:
      - 'postgresql-data:/var/lib/postgresql/data'
    environment:
      - POSTGRES_USER=$SERVICE_USER_POSTGRES
      - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
      - 'POSTGRES_DB=${POSTGRES_DB:-umami}'
    healthcheck:
      test:
        - CMD-SHELL
        - 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
      interval: 5s
      timeout: 20s
      retries: 10

Database

PostgreSQL

Relevant log output

Which Umami version are you using? (if relevant)

latest

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

docker-compose, coolify

@mikecao
Copy link
Collaborator

mikecao commented Mar 11, 2025

CLOUD_MODE requires CLOUD_URL as well to redirect users.

@the-leonat
Copy link
Author

what should i set CLOUD_URL to?

@mikecao
Copy link
Collaborator

mikecao commented Mar 14, 2025

Wherever you want users redirected to.

@the-leonat
Copy link
Author

the-leonat commented Mar 17, 2025

do i have to set those variables during build time? to my knowledge next.js bakes env vars into the bundle.

@mikecao
Copy link
Collaborator

mikecao commented Mar 18, 2025

Yes, needs to be done during build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants