Skip to content

Suport: Error with databases URLs #171

Closed

Description

@htrcc99

I am trying to initialize the project, but I keep getting the error that the postgresql and redis urls are not valid. I would appreciate any help.

Attached is the docker compose.

version: "3"

services:
  docmost:
    image: docmost/docmost:latest
    container_name: docmost_app
    depends_on:
      - docmost_postgre
      - docmost_redis
    environment:
      APP_URL: "https://docmost.example.com"
      APP_SECRET: "SCqcZckgPwB8r5kXraXRSjbnz79faP4g"
      DATABASE_URL: "postgresql://docmost:7HkxN5NmsR3n753D8ATgxx3bj9Cha6MB@docmost_postgre:5432/docmost?schema=public"
      REDIS_URL: "redis://docmost_redis:6379"
    networks:
      - docmost
    expose:
      - 3000
    restart: unless-stopped
    volumes:
      - ./data/docmost:/app/data/storage

  docmost_postgre:
    image: postgres:16-alpine
    container_name: docmost_postgre
    environment:
      POSTGRES_DB: docmost
      POSTGRES_USER: docmost
      POSTGRES_PASSWORD: 7HkxN5NmsR3n753D8ATgxx3bj9Cha6MB
    restart: unless-stopped
    networks:
      - docmost
    expose:
      - 5432
    volumes:
      - db_data:/var/lib/postgresql/data

  docmost_redis:
    image: redis:7.2-alpine
    container_name: docmost_redis
    restart: unless-stopped
    networks:
      - docmost
    expose:
      - 6379
    volumes:
      - redis_data:/data

volumes:
  db_data:
  redis_data:

networks:
  docmost:
    external: true

Activity

  1. changed the title [-]Suport: [/-] [+]Suport: Error with databases URLs[/+] on Aug 11, 2024
  2. Philipinho commented on Aug 12, 2024

    @Philipinho
    Member

    Can you post the docmost error log?

  3. nomce commented on Aug 12, 2024

    @nomce

    Instead of underscores ("docmost_postgre" and "docmost_redis"), try with dashes ("docmost-postgre" and "docmost-redis").

    Ref: https://stackoverflow.com/questions/3523028/valid-characters-of-a-hostname

  4. karoltheguy commented on Oct 11, 2024

    @karoltheguy

    Instead of underscores ("docmost_postgre" and "docmost_redis"), try with dashes ("docmost-postgre" and "docmost-redis").

    Ref: https://stackoverflow.com/questions/3523028/valid-characters-of-a-hostname

    I know this is closed but since no one gave feedback on the solution proposed, I can attest their fix works!

  5. 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