Mercurial > hg > orthanc-tests
diff NewTests/Concurrency/docker-compose-transfers-concurrency.yml @ 601:3e15e950c462
new transfer tests in the concurrency section
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 19 Jan 2024 15:03:47 +0100 |
parents | |
children | d88b0fc15f08 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/NewTests/Concurrency/docker-compose-transfers-concurrency.yml Fri Jan 19 15:03:47 2024 +0100 @@ -0,0 +1,82 @@ +version: "3" +services: + + orthanc-pg-a: + image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest} + container_name: orthanc-pg-a + depends_on: [pg-a] + restart: unless-stopped + ports: ["8052:8042"] + volumes: ["storage-orthanc-a:/var/lib/orthanc/db"] + environment: + # VERBOSE_ENABLED: "true" + TRANSFERS_PLUGIN_ENABLED: "true" + ORTHANC__POSTGRESQL: | + { + "Host": "pg-a", + "TransactionMode": "READ COMMITTED" + } + ORTHANC__AUTHENTICATION_ENABLED: "false" + ORTHANC__ORTHANC_PEERS: | + { + "a": { + "Url": "http://orthanc-pg-a:8042/", + "RemoteSelf": "b" + }, + "b": { + "Url": "http://orthanc-pg-b:8042/" + } + } + ORTHANC__OVERWRITE_INSTANCES: "true" + + orthanc-pg-b: + image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest} + container_name: orthanc-pg-b + depends_on: [pg-b] + restart: unless-stopped + ports: ["8053:8042"] + volumes: ["storage-orthanc-b:/var/lib/orthanc/db"] + environment: + # VERBOSE_ENABLED: "true" + TRANSFERS_PLUGIN_ENABLED: "true" + ORTHANC__POSTGRESQL: | + { + "Host": "pg-b", + "TransactionMode": "READ COMMITTED" + } + ORTHANC__AUTHENTICATION_ENABLED: "false" + ORTHANC__ORTHANC_PEERS: | + { + "a": { + "Url": "http://orthanc-pg-a:8042/", + "RemoteSelf": "b" + }, + "b": { + "Url": "http://orthanc-pg-b:8042/" + } + } + ORTHANC__OVERWRITE_INSTANCES: "true" + + pg-a: + image: postgres:15 + container_name: pg-a + restart: unless-stopped + volumes: + - "storage-pg-a:/var/lib/postgresql/data" + environment: + POSTGRES_HOST_AUTH_METHOD: "trust" + + pg-b: + image: postgres:15 + container_name: pg-b + restart: unless-stopped + volumes: + - "storage-pg-b:/var/lib/postgresql/data" + environment: + POSTGRES_HOST_AUTH_METHOD: "trust" + +volumes: + storage-orthanc-a: + storage-orthanc-b: + storage-pg-a: + storage-pg-b: