Note Mark
  • Support The Project
  • V0.19

    This minimal copy of the V0 documentation. Use this to assist in migrating to V1.

    If you need the original documentation, build your own docs from the source-code of a V0 tag.

    Watch the official video on YouTube

    Example Docker Compose

    # file: docker-compose.yml
    volumes:
      data:
    
    services:
      note-mark:
        image: ghcr.io/enchant97/note-mark-aio:0.19
        restart: unless-stopped
        volumes:
          - data:/data
        environment:
          JWT_SECRET: "!!! REPLACE ME !!!"
          PUBLIC_URL: "http://notemark.example.com"
        ports:
          - 80:8080
    

    Configuration

    Configuration of the Note Mark is done through environment variables. See the below options:

    KeyDescriptionDefaultDocker Default
    BIND__HOSTWhat ip to listen on127.0.0.10.0.0.0
    BIND__PORTPort to bind to80808080
    BIND__UNIX_SOCKETListen on unix socket, overrides HOST/PORT when set--
    DB__TYPEType of DB (sqlite or postgres)sqlite
    DB__URIURI (or file path if using SQLite)/data/db.sqlite
    JWT_SECRETbase64 encoded secret
    TOKEN_EXPIRYseconds until a token expires259200259200
    DATA_PATHWhere to store app data/data
    STATIC_PATHHost static files
    PUBLIC_URLThe URL where app is accessed from
    ENABLE_INTERNAL_SIGNUPWhether to enable new internal accountstruetrue
    ENABLE_INTERNAL_LOGINWhether to enable new logins for internal accountstruetrue
    NOTE_SIZE_LIMITMax file size for note1M1M
    ASSET_SIZE_LIMITMax file size for uploaded assets12M12M
    OIDC__DISPLAY_NAMEThe provider name (used for UI)--
    OIDC__PROVIDER_NAMEThe provider name (used for DB)--
    OIDC__ISSUER_URLThe OIDC issuer url--
    OIDC__CLIENT_IDThe OIDC client id--
    OIDC__ENABLE_USER_CREATIONWhether to automatically create userstruetrue

    TIP A secret can be generated using: openssl rand -base64 32

    Database URI

    These have been copied from the ORM docs, more info found on gorm.io.

    sqlite:

    /path/to/db.sqlite
    

    postgres:

    host=localhost user=user password=pass dbname=notemark port=5432 sslmode=disable TimeZone=Europe/London
    

    PUBLIC_URL

    This MUST be set to your front-end URL and NOT end in a trailing slash e.g. https://notemark.example.com.

    CLI

    Usage

    docker compose exec note-mark /note-mark --help
    

    Export For V1

    Migrating to V1 is easy with the in-built export tool. Find out more about migrating here.