Installation guide · Run the service
Settings
How to set and change the settings, and those for the service, sign-in, searches, limits and email.
Set these with -e NAME=value or in an env file (--env-file). Docker reads an env file literally: write NAME=value with no quotes. A changed setting takes effect only in a new container: run docker stop sequences && docker rm sequences, then your docker run command again, with the new -e value or the edited env file. docker restart keeps the old settings. A setting that is missing or does not fit stops the service at start with a message that names it.
Service and sign-in
| Setting | Default in the image | What it does |
|---|---|---|
BIOSEQUENCE_LICENSE_FILE | /config/license.json | The license file |
BIOSEQUENCE_DATA_DIR | /data | Snapshots, jobs and results. Keep it on the sequences-data volume |
BIOSEQUENCE_PORT | 8765 | The port the service listens on, 1024 to 65535 |
BIOSEQUENCE_HOSTED_BIND | 0.0.0.0 | The address inside the container with sign-in on. With sign-in off the service uses 127.0.0.1 whatever this says |
BIOSEQUENCE_ALLOWED_HOSTS | none | The host name people use, such as sequences.example.org. Setting it turns sign-in on. Separate several names with commas |
BIOSEQUENCE_SITE_URL | https:// and the first allowed host | The address people sign in at: https:// and one of the allowed hosts, with no port or path. Its /api/auth/callback is the redirect URI you register with your provider |
BIOSEQUENCE_OIDC_ISSUER | none | Your provider's issuer URL |
BIOSEQUENCE_OIDC_CLIENT_ID | none | The client ID of the Sequences application at your provider |
BIOSEQUENCE_OIDC_CLIENT_SECRET_FILE | none | A file that holds the client secret, such as /config/oidc-client-secret. BIOSEQUENCE_OIDC_CLIENT_SECRET takes the secret itself instead |
BIOSEQUENCE_OIDC_CLIENT_AUTH | client_secret_basic | How the service sends the secret: client_secret_basic or client_secret_post |
BIOSEQUENCE_OIDC_NAME | your organization's account | Shown on the sign-in button: "Sign in with your organization's account" |
BIOSEQUENCE_OIDC_SCOPES | openid email profile | Scopes the service asks for. Must include openid |
BIOSEQUENCE_OIDC_USER_CLAIM | email | The claim that names a person. With email, the provider must also send email_verified as true |
BIOSEQUENCE_OIDC_GROUP_CLAIM | groups | The claim that lists a person's groups or roles |
BIOSEQUENCE_OIDC_REQUIRED_GROUP | none | Only people with this value in the group claim may sign in |
BIOSEQUENCE_ALLOWED_DOMAINS | none | Domains that may sign in, such as example.org, separated by commas: people whose user claim ends in @ and one of them |
BIOSEQUENCE_INVITE_FILE | none | A file with one user per line (the user claim's value), where # starts a comment |
BIOSEQUENCE_INVITATIONS | none | For ConductScience's hosted service alone. Leave it unset: set to on, it stops the service at start |
BIOSEQUENCE_STRIPE_WEBHOOK_SECRET | none | For ConductScience's hosted service alone. Leave it unset: set, it stops the service at start |
BIOSEQUENCE_STRIPE_PAYMENT_LINK | none | For ConductScience's hosted service alone. Leave it unset: set, it stops the service at start |
BIOSEQUENCE_STRIPE_PRICE | none | For ConductScience's hosted service alone. Leave it unset: set, it stops the service at start |
BIOSEQUENCE_ADMINS | none | People who see the usage page at /admin and make connector tokens, as the user claim names them, separated by commas. They must still be allowed to sign in |
BIOSEQUENCE_SESSION_HOURS | 12 | How long a sign-in lasts, 1 to 168 hours |
BIOSEQUENCE_SESSION_SECRET_FILE | /data/session-secret, made on first start | The key that signs session cookies, 32 characters or more |
BIOSEQUENCE_TOKEN_DAYS | 90 | The longest an API token may last, 1 to 90 days. 0 turns API tokens off. See API tokens for programs |
With sign-in on, the service needs at least one rule for who may use it: BIOSEQUENCE_INVITE_FILE, BIOSEQUENCE_ALLOWED_DOMAINS or BIOSEQUENCE_OIDC_REQUIRED_GROUP. Write the settings says how the rules combine.
Searches, limits and email
| Setting | Default in the image | What it does |
|---|---|---|
BIOSEQUENCE_THREADS | CPU count minus 2, at most 14 | Threads for one search, 1 to 14 |
BIOSEQUENCE_CONCURRENCY | 1 | The most searches of the snapshot, exact alignments and portfolio exports that run at once, 1 to 16. The others wait their turn. A coordinator takes 0 to 16. See Settings for several servers |
BIOSEQUENCE_MAX_JOBS | 8 | How many searches the queue holds at once, waiting and running, 1 to 256. A case's run uses the free places and leaves 2 for searches people start from the page |
BIOSEQUENCE_JOB_SECONDS | 3600 | Time limit for one search or portfolio export, 1 to 86,400 seconds |
BIOSEQUENCE_CPU_HOURS_PER_DAY | none | The CPU hours each account's searches may use in a UTC day, a number above 0 and up to 100,000, such as 24. At the limit, the account's new searches are refused until 00:00 UTC. Unset, there is no limit. See Compute limits |
BIOSEQUENCE_CONFIRM_MINUTES | none | A search whose estimate is longer, 1 to 1,440 minutes, asks the person before it queues. Unset, no search asks for its time. See Compute limits |
BIOSEQUENCE_LARGE_SETS | none | Sets whose searches always ask before they queue, separated by commas: a snapshot set by its name, such as trembl, or an attached database by the path it was attached from or by its ID |
BIOSEQUENCE_MAX_OUTPUT_BYTES | 8 GiB | Largest result file of one search: a whole number of bytes, with no unit, from 1 KiB to 4 TiB |
BIOSEQUENCE_SEARCH_MEMORY_BYTES | The memory limit less the heap and 4 GiB | Memory that searches running at once may hold together, by the server's estimate for each: a whole number of bytes, with no unit, from 1 byte to 4 TiB. A search that would pass it waits its turn; one larger than it runs alone |
BIOSEQUENCE_LISTING_BYTES | 256 MiB | Largest sequence listing file people can upload: a whole number of bytes, with no unit, from 1 MiB to 64 GiB. Keep your proxy's upload limit above it |
BIOSEQUENCE_PATENT_LINK | https://patents.google.com/patent/{office}{number}{kind} | The link on each patent's number in the results. The default writes each number as Google Patents writes that office's numbers in that era, and links a publication Google Patents does not have to Espacenet. Another address is filled in as you give it. An empty value removes the links |
BIOSEQUENCE_CONTEXT | none | A patent context folder made with the context command, such as /data/context/<snapshotId>-1. With it, a US publication's pane quotes what the patent says about the matching sequences, and a publication of another office shows its English title and abstract where the folder holds them. See Patent context |
BIOSEQUENCE_MAIL_FROM | none | The sender of watch emails, such as Sequences <noreply@example.org>. Set it with BIOSEQUENCE_RESEND_KEY, or neither. See Watch emails |
BIOSEQUENCE_RESEND_KEY | none | The API key of your account at Resend, the email delivery service that sends watch emails. Without both mail settings, watches show what they find on the page only |
BIOSEQUENCE_MAIL_DETAILS | off | on makes each watch email name the watch and list its new matches or publications. Unset or off, an email says only how many new matches or publications one of the person's watches found, and names no watch, query or match. Any other value stops the service at start. See Watch emails |
Guide version 1.63.0 · For Sequences 0.155.0