Login after setting up with Docker

Firts of all I know nothing about Speckle. I am just an IT guy helping my collegues who work with this. I have setup Speckle with docker compose. It works. However I do not understand how to login. Email does not work. I have added my own smtp server as well. And added this. I also have a pgadmin gui if it helps. How can I login as admin after?

Installed like this: Deploying a Server - Docker Compose | Speckle Docs

I have this under the container image: speckle/speckle-server:2

EMAIL: “true”

  EMAIL_HOST: "postfix.domain.se"
  EMAIL_PORT: "25"
  # EMAIL_USERNAME:
  # EMAIL_PASSWORD:
  EMAIL_FROM: "speckle@domain.se"
  SPECKLE_ADMIN_EMAIL: "admin@domain.se"
  SPECKLE_ADMIN_PASSWORD: "test"
  SPECKLE_ADMIN_NAME: "Admin"

Hi,
When the server and frontend are running, you should be able to open Speckle in your web browser at the CANONICAL_URL location you configured. If you then register as a new user, the first user registered will be the server admin.

The SPECKLE_ADMIN_* are not recognised environment variables and will not do anything. Were you following a guide that suggested these environment variables?

Iain

Thanks for replying! Just Googled until I got crazy and tested all variables. The problem is that I can not register as I do not get any mail. And I have my own local mailserver running. Is there another way to create a user without sending the email?

Are you able to see the login page, and then click ‘sign up’. Are you able to complete the sign up page and see the email verification code page?

If so, it appears that it may be an issue with configuration of the mail server.

Firstly, I’d recommend running maildev locally. We have an example of configuring it to run via Docker Compose.

Wait until maildev is running and you should then be able to browse to http://127.0.0.1:1080 and view the maildev UI.

Once it is running, set the following environment variables for speckle-server container and restart the service/container.

EMAIL: "true"
EMAIL_HOST: "127.0.0.1"
EMAIL_FROM: "no-reply@example.org"
EMAIL_PORT: "1025"

You should then be able to view any emails in the maildev UI, and confirm that speckle’s email system is working.

Iain

Thanks will try. However the variable

strong textEMAIL: “true”

Always makes the server unable to start. I have removed it

@planet4 - Could you share the log lines and any error messages when the server fails to startup please? This will help us debug the problem.

I actually got the mail now. The maildev helped me. Also tThe server came au after a while with the EMAIL: “true”. I also removed all containers and restarted them. Seems to work now. Thanks.

2 Likes