Skip to content

Erros on docker install #62

Closed
Closed

Description

@thinkbig1979

Hi there,

I'm using compose to try and run your app.
I've used your compose file template, moved the password and secret into a .env file.
I've replaced the DB password in below example with my-sontrng-password so as not to expose my password here.
Unfortunately I'm faced with the following error:

[ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
Error: getaddrinfo ENOTFOUND redis
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'redis'
}

Any ideas...?

My compose file:

version: "3"
services:
  docmost:
    image: docmost/docmost:latest
    container_name: docmost
    depends_on:
      - db
      - redis
    environment:
      APP_URL: https://my.app.url
      APP_SECRET: ${SECRET}
      DATABASE_URL: postgresql://docmost:my-strong-password@db:5432/docmost?schema=public
      REDIS_URL: redis://redis:6379
    #    ports:
    #      - "3000:3000"
    restart: unless-stopped
    volumes:
      - ./data:/app/data/storage
    networks:
      - nginxproxymanager_default
  db:
    image: postgres:16-alpine[ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
Error: getaddrinfo ENOTFOUND redis
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'redis'
}

Activity

  1. thinkbig1979 commented on Jul 5, 2024

    @thinkbig1979
    Author

    Silly me....added the docmost container to the nginx network, but ddoing so cut it off from the rest. I've now added all 3 containers to a docker network so that the can all talk to eachother and it works fine. Apologies!

  2. Philipinho commented on Jul 5, 2024

    @Philipinho
    Member

    I am glad you figured it out yourself.
    I would love to hear your feedback and what you think is missing, if you've got any.
    Thank you.

  3. thinkbig1979 commented on Jul 6, 2024

    @thinkbig1979
    Author

    thanks @Philipinho, happy to provide some feedback of course:

    I'm working with a team that uses Notion quite a bit, and one thing we all love is the 'databases' that you can view as kanban boards or tables etc. That currently does not exist in Docmost, and would be a killer addition.

  4. ultranity commented on Jul 8, 2024

    @ultranity

    thanks @Philipinho, happy to provide some feedback of course:

    I'm working with a team that uses Notion quite a bit, and one thing we all love is the 'databases' that you can view as kanban boards or tables etc. That currently does not exist in Docmost, and would be a killer addition.

    this feature will be quite cool and it deserve an extra issue/project dissusion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions