Skip to content
Back

CLI login on self hosted with docker

  • 0
  • 2
  • Self Hosted
tkorsback
20 Oct, 2025, 09:56

Hi,

I have a working docker setup with traefik in front of the services. Everything works as expected except for login with CLI.

I've tried with appwrite client -e https://mardy.dev.cloud/v1

and also with -p -k

The response I get is that the server is not running as expected. Error: Invalid endpoint or your Appwrite server is not running as expected.

Do anyone have an idea what it could be? Traefik is using a self-signed cert so maybe I need to turn something off for Appwrite?

TL;DR
The user is experiencing issues logging in on localhost but can log in on 127.0.0.1 on a self-hosted CLI with docker. They plan to try another fresh install on their gaming pc. They mention they might use a dnsmasq container due to hosts file limitations with wildcards.
20 Oct, 2025, 16:02

try appwrite login --endpoint=https://mardy.dev.cloud/v1

20 Oct, 2025, 16:39

I have tried that also. Same problem. The reason I want to use the cli is to avoid connecting repos for functions and sites so I can develop locally.

20 Oct, 2025, 16:42

have you tried setting selfSigned to true?

20 Oct, 2025, 16:45

Yes, with command (failed) and also in *.json config.

Is there any way to prevent appwrite to use ssl and just serve on http? I’ve read that appwrite generates a cert for local dev.

20 Oct, 2025, 17:36

I will try again with a fresh install.

21 Oct, 2025, 05:34

if on localhost it skips the ssl cert generation

21 Oct, 2025, 05:34

you can see it skips it in container logs

21 Oct, 2025, 06:51

Ok cool. Then the ssl with traefik works.

I did a fresh install and the cli could login on 127.0.0.1 but not localhost. In the browser I can visit localhost but not login. On 127.0.0.1 I can visit and login.

Will try one more fresh install on my gaming pc also just to verify.

In the end I think I will go with a dnsmasq container since the hosts file can’t handle wildcards.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more