Skip to main content

Docker

This manual describes how to add the Bridge service to the docker-compose.yml file where the PACS service is already configured.

Create the bridge.yml configuration file​

This file contains the configuration defining how Bridge connects to each PACS. A basic bridge.yml example:

port: 8081
ip: 0.0.0.0
token: "MASTER_TOKEN"
nodes:
- name: "proteus2"
aeTitle: "PACS2"
baseUrl: "https://url2.com.ar"
token: "TOKEN1"
viewer: "https://viewer.com.ar/viewer/view%mobile%?mode=default&ids=%ids%&auth=%token%&source=%source%"
film: "https://viewer.com.ar/film?ids=%ids%&token=%token%"
- name: "proteus1"
aeTitle: "PACS1"
baseUrl: "https://url1.com.ar"
token: "TOKEN2"
v1Token: true
viewer: "https://viewer.com.ar/viewer/view%mobile%?mode=default&ids=%ids%&auth=%token%&source=%source%"

General parameters​

port: 8081
  • Port where the Bridge service is exposed (e.g., to receive HTTP requests).
ip: 0.0.0.0
  • Bind IP address. 0.0.0.0 means it listens on all available network interfaces of the container or system.
token: "1234567890"
  • Master token to authenticate incoming Bridge requests. A security layer for service access.

nodes section​

This section defines the remote PACS connected through Bridge. Each entry represents a PACS node.

nodes:
- name: "proteus2"
aeTitle: "PACS2"
baseUrl: "https://url2.com.ar"
token: <TOKEN1>
viewer: "https://viewer.com.ar/viewer/view%mobile%?mode=default&ids=%ids%&auth=%token%&source=%source%"
  • name: Node identifier (unique and readable).
  • aeTitle: Application Entity Title used to identify the PACS in DICOM communications.
  • baseUrl: Base URL where the PACS is hosted.
  • token: Authentication token the Bridge uses to interact with that PACS.
  • v1Token: (Optional) Boolean to use token generation version 1 (true) or version 2 (false).
  • viewer: URL template for the standard viewer.
  • film: (Optional) URL template for studies with KO (Key Object Selection) modality.

URL Placeholders​

The following placeholders are dynamically replaced in viewer and film:

  • %token%: Temporary token generated by the PACS for secure access.
  • %source%: Node identifier (field name).
  • %ids%: List of comma-separated Study Instance UIDs.
  • %mobile%: Replaced with "/mobile" for mobile access, otherwise with an empty string.
info

The tokens <TOKEN1> and <TOKEN2> must be replaced with the actual authentication values for each PACS.

Token Permissions​

The token configured for each PACS node must have permissions for the following endpoints on the corresponding PACS:

  • POST /api/v1/dicom/find/series (For series search)
  • POST /api/v1/dicom/find/studies (For study search)
  • POST /api/v1/dicom/token (To generate v2 viewer tokens)
  • GET /api/v1/dicom/services/* (To generate v1 viewer tokens)

Add to the docker-compose.yml file​

services:
pacs:
........
bridge:
image: public.ecr.aws/forzasoft/pbridge:latest
container_name: pbridge
restart: unless-stopped
ports:
- "8081:8081"
volumes:
- /home/user/pacs/bridge_logs:/usr/src/app/logs/
- /home/user/pacs/bridge.yml:/usr/src/app/config.yml
healthcheck:
test: curl -s -f http://localhost:8081/healthz || exit 1
interval: 30s
timeout: 30s
retries: 3
start_period: 20s