Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ BEACON_NODE_ID="org.anyvlm.gregor"
# Defaults match compose.anyvar.yaml

# Biocommons services configuration
UTA_DB_URL=postgresql://anonymous@localhost:5432/uta/uta_20241220
UTA_DB_URL=postgresql://anonymous@localhost:5433/uta/uta_20241220
SEQREPO_DATAPROXY_URI=seqrepo+file:///usr/local/share/seqrepo/2024-12-20

# AnyVar storage configuration
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ BEACON_HANDOVER_URL="https://variants.example.org/"
BEACON_NODE_ID="org.anyvlm.example"

# AnyVar configuration
UTA_DB_URL=postgresql://anonymous@localhost:5432/uta/uta_20241220
UTA_DB_URL=postgresql://anonymous@localhost:5433/uta/uta_20241220
SEQREPO_DATAPROXY_URI=seqrepo+file:///usr/local/share/seqrepo/2024-12-20
ANYVAR_STORAGE_URI=postgresql://anyvar:anyvar-pw@localhost:5434/anyvar

Expand Down
4 changes: 2 additions & 2 deletions compose.anyvar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
environment:
- SEQREPO_INSTANCE_DIR=/usr/local/share/seqrepo/2024-12-20
- SEQREPO_DATAPROXY_URI=seqrepo+file:///usr/local/share/seqrepo/2024-12-20
- UTA_DB_URL=postgresql://uta_admin:some-password-that-you-make-up@uta:5432/uta/uta_20241220
- UTA_DB_URL=postgresql://anonymous@uta:5432/uta/uta_20241220
Comment thread
korikuzma marked this conversation as resolved.
- ANYVAR_STORAGE_URI=postgresql://anyvar:anyvar-pw@anyvar_db:5432/anyvar
ports:
- 127.0.0.1:8000:8000
Expand All @@ -30,7 +30,7 @@ services:
volumes:
- uta_vol:/var/lib/postgresql/data
ports:
- 127.0.0.1:5432:5432
- 127.0.0.1:5433:5432

anyvar_db:
image: postgres:17
Expand Down
2 changes: 1 addition & 1 deletion compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
context: .
args:
# NOTE: Makefile sets this to ANYVLM_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo 0.0.0)
ANYVLM_VERSION:: ${ANYVLM_VERSION:?ANYVLM_VERSION must be set to the AnyVLM version being used}
ANYVLM_VERSION: ${ANYVLM_VERSION:?ANYVLM_VERSION must be set to the AnyVLM version being used}
depends_on:
anyvlm_db:
required: true
Expand Down
6 changes: 6 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ services:
condition: service_started
ports:
- 127.0.0.1:8080:8000
environment:
- ANYVLM_STORAGE_URI=postgresql://anyvlm:anyvlm-pw@anyvlm_db:5432/anyvlm
- HANDOVER_TYPE_ID=GREGoR-NCH
- HANDOVER_TYPE_LABEL=GREGoR AnyVLM Reference
- BEACON_HANDOVER_URL=https://variants.gregorconsortium.org/
- BEACON_NODE_ID=org.anyvlm.gregor

anyvlm_db:
image: postgres:17
Expand Down
19 changes: 19 additions & 0 deletions docs/source/configuration/docker_compose.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,25 @@ An example environment file is documented in :doc:`dotenv_example`. The values s

If you are using the example targets documented below, those values can be used as-is.

Beacon / handover configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The following environment variables are set in ``compose.yaml`` and ``compose.dev.yaml`` and configure the VLM Spec:

.. code-block:: yaml

environment:
- HANDOVER_TYPE_ID=GREGoR-NCH
- HANDOVER_TYPE_LABEL=GREGoR AnyVLM Reference
- BEACON_HANDOVER_URL=https://variants.gregorconsortium.org/
- BEACON_NODE_ID=org.anyvlm.gregor

These defaults are configured for the GREGoR AnyVLM node.

.. note::

You can change these values directly in ``compose.yaml`` and/or ``compose.dev.yaml`` if needed.

Volumes
-------

Expand Down