i am setting up SuperTokens with docker-compose bu...
# support-questions
n
i am setting up SuperTokens with docker-compose but when SuperTokens starts it says that is using memory storage this is my docker-compose file:
Copy code
psql:
    image: postgres
    container_name: postgress
    restart: unless-stopped
    ports:
      - "5432:5432"
    volumes:
      - ./docker/psql/data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_DB: ${POSTGRES_DB}

  supertokens:
    image: registry.supertokens.io/supertokens/supertokens-postgresql
    container_name: supertokens
    restart: unless-stopped
    ports:
      - 3567:3567
    environment:
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRESQL_DATABASE_NAME: ${POSTGRES_DB}
    depends_on:
      - psql
and yes i started the db first
p
it looks like the envvar names are different: they are prefixed with
POSTGRES
instead of
POSTGRESQL
. Also, I think you should also specify the host and port
SuperTokens core in Docker with postgresql
n
ok i forgot the host and port and its
POSTGRESQL
https://github.com/supertokens/supertokens-docker-postgresql
3 Views