Open kabaluyot opened 1 month ago
Here is the docker compose config:
version: "3.8"
services:
orthanc:
image: orthancteam/orthanc:latest
container_name: orthanc
restart: unless-stopped
ports:
- 8053:8042
volumes:
- orthanc-storage:/var/lib/orthanc/db/
environment:
ORTHANC__NAME: "PACS Orthanc"
ORTHANC__DICOM_AET: "PACS_AI"
ORTHANC__DICOM_MODALITIES: |
{
"hospital-1": ["HOSPITAL_1", "orthanc-hospital-1", 4242],
"hospital-2": ["HOSPITAL_2", "orthanc-hospital-2", 4242]
}
DICOM_WEB_PLUGIN_ENABLED: "true"
ORTHANC__DICOM_WEB__PUBLIC_ROOT: "/orthanc/dicom-web/"
ORTHANC__ORTHANC_EXPLORER_2__UI_OPTIONS__ENABLE_OPEN_IN_OHIF_VIEWER_3: "true"
ORTHANC__ORTHANC_EXPLORER_2__UI_OPTIONS__OHIF_VIEWER_3_PUBLIC_ROOT: "http://localhost/orthanc/ohif/"
STONE_WEB_VIEWER_PLUGIN_ENABLED: "true"
OHIF_PLUGIN_ENABLED: "true"
ORTHANC__OHIF: |
{
"RouterBasename": "/orthanc/ohif/",
"DataSource" : "dicom-web"
}
ORTHANC__AUTHENTICATION_ENABLED: "false"
ORTHANC__POSTGRESQL: |
{
"Host": "orthanc-index"
}
VERBOSE_STARTUP: "true"
depends_on:
- orthanc-index
orthanc-index:
image: postgres:14
container_name: orthanc-index
restart: unless-stopped
ports: ["5432:5432"]
volumes: ["orthanc-index:/var/lib/postgresql/data"]
command: -c 'max_connections=200'
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
orthanc-storage:
orthanc-index:
Was playing arouond with postgres version
but still doesn't solve the issue for Postgres 14, 15, 16 ..
Also to be clear, spinning up works fine but its just after some time (like several hours), the errors started showing
Could you try with this option ?
ORTHANC__POSTGRESQL: |
{
"Host": "orthanc-index",
"TransactionMode": "ReadCommitted"
}
That should clearly reduce the number of collisions.
Setting up Orthanc server is fine but after some hours, there are lots of serialization errors and the Orthanc server doesn't work anymore. Here are the logs: