When trying to run the docker command listed on do...
# support-questions-legacy
t
When trying to run the docker command listed on docker hub, I get this error:
| ERROR | pid: cbf2ff35-f505-4059-b612-ce85dd43a15a | [http-nio-0.0.0.0-3567-exec-1] thread | io.supertokens.webserver.api.core.NotFoundAPI.service(NotFoundAPI.java:44) |
I'm running on an ubuntu VPS if that would affect anything.
r
How are you running the docker image? And how did you get this error?
t
Using this command that I found on the docker hub: https://hub.docker.com/r/supertokens/supertokens-postgresql
Copy code
bash
docker run \
    -p 3567:3567 \
    -e POSTGRESQL_CONNECTION_URI="postgresql://username:password@host:port/dbName" \
    -d registry.supertokens.io/supertokens/supertokens-postgresql
I also tried using the docker compose @User wrote up: https://discord.com/channels/603466164219281420/958617701029388288/958619798948941824
Copy code
yaml
supertoken-users:
    image: registry.supertokens.io/supertokens/supertokens-postgresql
    ports:
      - '3567:3567'
    environment:
      - MYSQL_USER=username
      - MYSQL_PASSWORD=password
      - MYSQL_HOST=host
      - MYSQL_PORT=3306
      - MYSQL_DATABASE_NAME=supertokens
The error occurs when trying to navigate to the app in the browser. Like,
hostname.com:3567
. What is see in the browser is a message that reads
Not found
r
Try navigating to hostname.com:3567/hello
t
that gives me message
Hello
r
Yes. So it is working as expected.
5 Views