• ?

    user

    1 year ago
    Gotcha. So would this be more correct then?
  • r

    rp

    1 year ago
    this is accurate! yes
  • ?

    user

    1 year ago
    Awesome thanks Rishabh
  • r

    rp

    1 year ago
    happy to help!
  • ?

    user

    1 year ago
    For the part about
    NOTE: POSTGRESQL_HOST being localhost / 127.0.0.1 will not work in a docker image.Please provide the database's local / public hostname or IP address
    Where can one find the database / public hostname or IP address?
  • ?

    user

    1 year ago
    Use your public ipv4 address?
  • r

    rp

    1 year ago
    You need to use the IP address of your computer in your network. And make sure that the Postgres DB is listening on that IP
  • r

    rp

    1 year ago
    This is topic related to docker networking, and there are plenty of resources available to understanding that.
  • ?

    user

    1 year ago
    I see. I've been using docker compose and think I have the right values but it's not accepting the host + port
  • ?

    user

    1 year ago
    yaml
    // docker-compose.ysml
    version: '3'
    services:
      database:
        image: postgres
        restart: always
        ports:
          - '5432:5432'
        environment:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: pass123
    
      supertokens:
        image: supertokens/supertokens-postgresql
        restart: always
        ports: 
          - '3567:3567' 
        environment:
          POSTGRESQL_USER: postgres
          POSTGRESQL_PASSWORD: pass123
          POSTGRESQL_HOST: database
          POSTGRESQL_PORT: 5432
          POSTGRESQL_DATABASE_NAME: supertokens