comparison NewTests/PostgresUpgrades/docker-compose.yml @ 596:b1e1c7149a37

new PG upgrades tests
author Alain Mazy <am@osimis.io>
date Thu, 21 Dec 2023 18:02:49 +0100
parents
children f3475c3e42e5
comparison
equal deleted inserted replaced
595:b6c1f0c9ca15 596:b1e1c7149a37
1 version: "3"
2 services:
3
4 # Orthanc with PG plugin v2
5 orthanc-pg-15-2:
6 image: osimis/orthanc:18.4.3
7 container_name: orthanc-pg-15-2
8 depends_on: [pg-15]
9 restart: unless-stopped
10 ports: ["8049:8042"]
11 volumes: ["storage-orthanc-pg-15:/var/lib/orthanc/db"]
12 environment:
13 VERBOSE_ENABLED: "true"
14 PG_HOST: "pg-15"
15 PG_LOCK: "false"
16 PG_INDEX_ENABLED: "true"
17 AC_AUTHENTICATION_ENABLED: "false"
18
19 # Orthanc latest version
20 orthanc-pg-15-under-tests:
21 image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest}
22 container_name: orthanc-pg-15-under-tests
23 depends_on: [pg-15]
24 restart: unless-stopped
25 ports: ["8050:8042"]
26 volumes: ["storage-orthanc-pg-15:/var/lib/orthanc/db"]
27 environment:
28 VERBOSE_ENABLED: "true"
29 ORTHANC__AUTHENTICATION_ENABLED: "false"
30 ORTHANC__POSTGRESQL: |
31 {
32 "Host": "pg-15",
33 "TransactionMode": "READ COMMITTED"
34 }
35
36
37 pg-15:
38 image: postgres:15
39 container_name: pg-15
40 restart: unless-stopped
41 ports: ["5439:5432"]
42 volumes: ["storage-pg-15:/var/lib/postgresql/data"]
43 environment:
44 POSTGRES_HOST_AUTH_METHOD: "trust"
45 healthcheck:
46 test: pg_isready -U postgres -d postgres
47 interval: 1s
48 timeout: 1s
49 retries: 10
50
51
52 # Orthanc latest version
53 orthanc-pg-9-under-tests:
54 image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest}
55 container_name: orthanc-pg-9-under-tests
56 depends_on: [pg-9]
57 restart: unless-stopped
58 ports: ["8051:8042"]
59 volumes: ["storage-orthanc-pg-9:/var/lib/orthanc/db"]
60 environment:
61 VERBOSE_ENABLED: "true"
62 ORTHANC__AUTHENTICATION_ENABLED: "false"
63 ORTHANC__POSTGRESQL: |
64 {
65 "Host": "pg-9",
66 "TransactionMode": "READ COMMITTED"
67 }
68
69
70 pg-9:
71 image: postgres:9.5
72 container_name: pg-9
73 restart: unless-stopped
74 ports: ["5440:5432"]
75 volumes: ["storage-pg-9:/var/lib/postgresql/data"]
76 environment:
77 POSTGRES_HOST_AUTH_METHOD: "trust"
78 healthcheck:
79 test: pg_isready -U postgres -d postgres
80 interval: 1s
81 timeout: 1s
82 retries: 10
83
84 volumes:
85 storage-orthanc-pg-15:
86 storage-pg-15:
87 storage-orthanc-pg-9:
88 storage-pg-9: