Skip to content

Redis connection string will not accept underscores #547

Closed

Description

@Riftr

When you use docker-compose it appends _1 to the name of the container. This means the hostname for the Redis server will be like redis_1 and the connection string needs to be redis://redis_1:6379

However, Docmost won't accept underscores in the redis connection string:

docmost_1 | The Environment variables has failed the following validations:
docmost_1 | {"isUrl":"REDIS_URL must be a valid redis connection string"}
docmost_1 | Please fix the environment variables and try again. Exiting program...
docmost_1 | /app/apps/server:
docmost_1 |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  [email protected] start:prod: cross-env NODE_ENV=production node dist/main
docmost_1 | Exit status 1
docmost_1 |  ELIFECYCLE  Command failed with exit code 1.

Please update the URL checker to accept underscores in the hostname to make it compatible with Docker.

Activity

  1. Philipinho commented on Dec 12, 2024

    @Philipinho
    Member

    This is now fixed in v0.6.1.

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