Skip to content

Commit b47380f

Browse files
authored
Merge pull request #71 from ccdc-opensource/PLA-1538
Pla 1538 4.1 changes
2 parents 1dd2b8e + 3f7de3e commit b47380f

5 files changed

+60
-36
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ Here is an example of the .env file:
8080

8181
```
8282
CCDC_LICENSING_CONFIGURATION=la-code;123456-123456-123456-123456-123456-123456;
83-
CSD_DB_CONNECTIONSTRING=Server=database-server;Port=5432;Database=csd-database;User Id=postgres;Password=passwordhere
84-
IDENTITY_DB_CONNECTIONSTRING=Server=database-server;Port=5432;Database=csd-identity;User Id=postgres;Password=passwordhere
85-
PLATFORM_PORT=443
83+
DB_CONNECTIONSTRING=Server=database-server;Port=5432;User Id=postgres;Password=passwordhere
84+
CSD_DATABASE=csd-database
85+
IDENTITY_DATABASE=csd-identity
8686
PUBLIC_URI=https://csd-software.local
87+
PLATFORM_PORT=443
8788
```
8889

8990
Where stated, some of these variables will be provided by CCDC; all other variables are for the user to generate and set.

docker-compose.macromolecule-hub.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ services:
1515

1616
ccdc-csd-substructuresearch:
1717
environment:
18-
- PdbReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=structure_optimisation
18+
- PdbReadConnection=${DB_CONNECTIONSTRING};SearchPath=structure_optimisation;Database=${CSD_DATABASE}
1919
- SubstructureSearchDatabaseConfiguration__Databases__1__Name=pdb
2020
- SubstructureSearchDatabaseConfiguration__Databases__1__SettingsKey=PdbReadConnection
2121

2222
ccdc-csd-deposition:
2323
environment:
24-
- DepositionPdbReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=pdb_schema
24+
- DepositionPdbReadConnection=${DB_CONNECTIONSTRING};SearchPath=pdb_schema;Database=${CSD_DATABASE}
2525
- DatabaseConfiguration__Databases__1__Name=pdb
2626
- DatabaseConfiguration__Databases__1__SettingsKey=DepositionPdbReadConnection
2727

2828
ccdc-csd-textnumericsearch:
2929
environment:
30-
- PdbReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=pdb_schema
30+
- PdbReadConnection=${DB_CONNECTIONSTRING};SearchPath=pdb_schema;Database=${CSD_DATABASE}
3131
- DatabaseConfiguration__Databases__1__Name=pdb
3232
- DatabaseConfiguration__Databases__1__SettingsKey=PdbReadConnection
3333

3434

3535
ccdc-csd-unitcellsearch:
3636
environment:
37-
- UnitCellPdbReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=pdb_cell_optimisation
37+
- UnitCellPdbReadConnection=${DB_CONNECTIONSTRING};SearchPath=pdb_cell_optimisation;Database=${CSD_DATABASE}
3838
- DatabaseConfiguration__Databases__1__Name=pdb
3939
- DatabaseConfiguration__Databases__1__SettingsKey=UnitCellPdbReadConnection

docker-compose.sample-csd-theory-db-config.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ services:
1212

1313
webcsdbackend:
1414
volumes:
15-
- /path/to/database-1:/csd-data/database-1
16-
- /path/to/database-2:/csd-data/database-2
15+
- /path/to/CSD-Theory Landscape Database:/csd-data/CSPLandscape.csdsqlx
1716
environment:
18-
- ServiceSettings__Databases__2__Name=database-1
19-
- ServiceSettings__Databases__2__ConnectionString=/csd-data/database-1
20-
- ServiceSettings__Databases__3__Name=database-2
21-
- ServiceSettings__Databases__3__ConnectionString=/csd-data/database-2
17+
- ServiceSettings__Databases__2__Name=CSP Database
18+
- ServiceSettings__Databases__2__ConnectionString=/csd-data/CSPLandscape.csdsqlx
19+
- ServiceSettings__Databases__2__Speciality__0=CSP
2220

2321
webcsd:
2422
volumes:

docker-compose.yml

+37-18
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,25 @@ services:
2828
restart: unless-stopped
2929

3030
ccdc-identity:
31-
image: ccdcrepository.azurecr.io/onsite/ccdc-identitygateway:4.0.0
31+
image: ccdcrepository.azurecr.io/onsite/ccdc-identitygateway:4.1.0
3232
environment:
33-
- "ConnectionStrings__DefaultConnection=${IDENTITY_DB_CONNECTIONSTRING}"
34-
- "PlatformClientSettings__RedirectUri=${PUBLIC_URI}/authentication/login-callback"
35-
- "PlatformClientSettings__PostLogoutRedirectUri=${PUBLIC_URI}/authentication/logout-callback"
36-
- "WebCsdClientSettings__RedirectUri=${PUBLIC_URI}/structures/signin-oidc"
37-
- "WebCsdClientSettings__PostLogoutRedirectUri=${PUBLIC_URI}/structures/signout-oidc"
33+
- ConnectionStrings__DefaultConnection=${DB_CONNECTIONSTRING};Database=${IDENTITY_DATABASE}
34+
- "PlatformClientSettings__RedirectUris__0=${PUBLIC_URI}/authentication/login-callback"
35+
- "PlatformClientSettings__PostLogoutRedirectUris__0=${PUBLIC_URI}/authentication/logout-callback"
36+
- "WebCsdClientSettings__RedirectUris__0=${PUBLIC_URI}/structures/signin-oidc"
37+
- "WebCsdClientSettings__PostLogoutRedirectUris__0=${PUBLIC_URI}/structures/signout-oidc"
3838
depends_on:
3939
- webcsdbackend
4040
restart: unless-stopped
4141

4242
webcsd:
4343
environment:
44-
- IdentityGateway__Authority=${PUBLIC_URI}
44+
- IdentityGateway__Issuer=${PUBLIC_URI}
4545
- IdentityGateway__DisableSSLValidation=true
4646
depends_on:
4747
- ccdc-csd-searchservice
4848
- csd-request-entry
49-
image: ccdcrepository.azurecr.io/onsite/webcsd:4.0.0
49+
image: ccdcrepository.azurecr.io/onsite/webcsd:4.1.0
5050
volumes:
5151
- ./userdata:/app/OnSite
5252
labels:
@@ -57,7 +57,7 @@ services:
5757
depends_on:
5858
- ccdc-csd-searchservice
5959
- csd-request-entry
60-
image: ccdcrepository.azurecr.io/onsite/webcsdbackend:4.0.0
60+
image: ccdcrepository.azurecr.io/onsite/webcsdbackend:4.1.0
6161
environment:
6262
- CCDC_LICENSING_CONFIGURATION=${CCDC_LICENSING_CONFIGURATION}
6363
labels:
@@ -74,23 +74,23 @@ services:
7474
- ccdc-csd-fingerprint
7575
- ccdc-csd-deposition
7676
environment:
77-
- StructureSearchReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=substructure
77+
- StructureSearchReadConnection=${DB_CONNECTIONSTRING};SearchPath=substructure;Database=${CSD_DATABASE}
7878
restart: unless-stopped
7979

8080
ccdc-csd-deposition:
8181
labels:
8282
<<: *k8s-labels
8383
image: ccdcrepository.azurecr.io/onsite/ccdc-csd-deposition-api:4.0.0
8484
environment:
85-
- CsdDepositionReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=csd_schema
85+
- CsdDepositionReadConnection=${DB_CONNECTIONSTRING};SearchPath=csd_schema;Database=${CSD_DATABASE}
8686
restart: unless-stopped
8787

8888
ccdc-csd-textnumericsearch:
8989
labels:
9090
<<: *k8s-labels
9191
image: ccdcrepository.azurecr.io/onsite/ccdc-csd-textnumericsearch-api:4.0.0
9292
environment:
93-
- CsdReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=csd_schema
93+
- CsdReadConnection=${DB_CONNECTIONSTRING};SearchPath=csd_schema;Database=${CSD_DATABASE}
9494
restart: unless-stopped
9595

9696
ccdc-csd-searchservice:
@@ -120,7 +120,7 @@ services:
120120
<<: *k8s-labels
121121
image: ccdcrepository.azurecr.io/onsite/ccdc-csd-formulasearch-api:4.0.0
122122
environment:
123-
- FormulaSearchReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=formula
123+
- FormulaSearchReadConnection=${DB_CONNECTIONSTRING};SearchPath=formula;Database=${CSD_DATABASE}
124124
restart: unless-stopped
125125

126126
ccdc-csd-unitcellsearch:
@@ -130,15 +130,15 @@ services:
130130
- ccdc-csd-reducedcell-calculation-service
131131
image: ccdcrepository.azurecr.io/onsite/ccdc-csd-unit-cell-search:4.0.0
132132
environment:
133-
- UnitCellSearchReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=unitcell
133+
- UnitCellSearchReadConnection=${DB_CONNECTIONSTRING};SearchPath=unitcell;Database=${CSD_DATABASE}
134134
restart: unless-stopped
135135

136136
ccdc-csd-resultstore:
137137
labels:
138138
<<: *k8s-labels
139139
image: ccdcrepository.azurecr.io/onsite/ccdc-csd-resultstore-api:4.0.0
140140
environment:
141-
- ResultStoreConnectionString=${CSD_DB_CONNECTIONSTRING};SearchPath=searchstore
141+
- ResultStoreConnectionString=${DB_CONNECTIONSTRING};SearchPath=searchstore;Database=${CSD_DATABASE}
142142
restart: unless-stopped
143143

144144
ccdc-csd-similaritysearch:
@@ -148,7 +148,7 @@ services:
148148
- ccdc-csd-fingerprint
149149
image: ccdcrepository.azurecr.io/onsite/ccdc-csd-structure-similarity-search:4.0.0
150150
environment:
151-
- StructureSimilaritySearchReadConnection=${CSD_DB_CONNECTIONSTRING};SearchPath=similarity
151+
- StructureSimilaritySearchReadConnection=${DB_CONNECTIONSTRING};SearchPath=similarity;Database=${CSD_DATABASE}
152152
restart: unless-stopped
153153

154154
ccdc-csd-fingerprint:
@@ -166,7 +166,7 @@ services:
166166
ccdc-csd-crystal-structure-export:
167167
labels:
168168
<<: *k8s-labels
169-
image: ccdcrepository.azurecr.io/onsite/ccdc-csd-crystal-structure-export-service:4.0.0
169+
image: ccdcrepository.azurecr.io/onsite/ccdc-csd-crystal-structure-export-service:4.1.0
170170
restart: unless-stopped
171171

172172
ccdc-csd-reducedcell-calculation-service:
@@ -181,4 +181,23 @@ services:
181181
image: ccdcrepository.azurecr.io/onsite/csd-theory:4.0.0
182182
environment:
183183
- CCDC_LICENSING_CONFIGURATION=${CCDC_LICENSING_CONFIGURATION}
184-
restart: unless-stopped
184+
restart: unless-stopped
185+
186+
message-broker:
187+
image: rabbitmq:3
188+
environment:
189+
RABBITMQ_DEFAULT_USER: queueuser
190+
RABBITMQ_DEFAULT_PASS: ${CCDC_LICENSING_CONFIGURATION}
191+
restart: unless-stopped
192+
193+
ccdc-file-generation:
194+
restart: unless-stopped
195+
image: ccdcrepository.azurecr.io/onsite/ccdc-structure-file-generation:4.1.0
196+
environment:
197+
- CacheSettings__ConnectionString=${DB_CONNECTIONSTRING};Database=structure_file_cache
198+
- MessagingProvider=RabbitMq
199+
- MessagingOnSitePassword=${CCDC_LICENSING_CONFIGURATION}
200+
- PlatformSecurity__Issuer=${PUBLIC_URI}
201+
- PlatformSecurity__DisableSSLValidation=true
202+
depends_on:
203+
- message-broker

sample.env

+11-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33
# More information can be found in section 14.8 in the release notes for the desktop CSD portfolio
44
CCDC_LICENSING_CONFIGURATION=la-code;123456-123456-123456-123456-123456-123456;
55

6-
# Password for local database
7-
CSD_DB_CONNECTIONSTRING=Server=database-server;Port=5432;Database=csd-database;User Id=postgres;Password=passwordhere
8-
IDENTITY_DB_CONNECTIONSTRING=Server=database-server;Port=5432;Database=csd-identity;User Id=postgres;Password=passwordhere
6+
# Configure the server, port, user ID, and password to match your Postgres server
7+
DB_CONNECTIONSTRING=Server=database-server;Port=5432;User Id=postgres;Password=passwordhere
8+
9+
# The database the CSD backup has been restored to
10+
CSD_DATABASE=csd-database
11+
12+
# Database for the v4 login system. This will be created at application startup if it doesn't already exist.
13+
IDENTITY_DATABASE=csd-identity
14+
15+
# Defines the base URL for the platform
16+
PUBLIC_URI=https://csd-software.local
917

1018
#You don't need to change this unless you want to run on a different port
1119
PLATFORM_PORT=443
12-
13-
PUBLIC_URI=https://csd-software.local

0 commit comments

Comments
 (0)