Skip to content

Commit

Permalink
Merge pull request #74 from mcode/env-vars
Browse files Browse the repository at this point in the history
env configs for intermediary + rems admin + pims + request generator
  • Loading branch information
smalho01 authored Oct 28, 2024
2 parents cbdef0d + d14420e commit f0722be
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
working-directory: ./rems-setup
env:
VSAC_API_KEY: ${{secrets.VSAC_API_KEY}}

- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
8 changes: 8 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ services:
ports:
- "8090:8090"
- "8091:8091"
- "9090:9090"
- "9091:9091"
environment:
VSAC_API_KEY: ${VSAC_API_KEY}
MONGO_URL: mongodb://rems-user:pass@pims_remsadmin_mongo:27017
Expand All @@ -118,12 +120,17 @@ services:
ports:
- "8095:8095"
- "8096:8096"
- "9095:9095"
- "9096:9096"
environment:
VSAC_API_KEY: ${VSAC_API_KEY}
MONGO_DB_NAME: remsadmin2
MONGO_URL: mongodb://rems-user2:pass@pims_remsadmin_mongo:27017
SERVER_NAME: 'CodeX REMS Administrator Prototype #2'
PORT: 8095
FRONTEND_PORT: 9095
AUTH_SERVER_URI: 'http://localhost:8095'
RESOURCE_SERVER: 'http://localhost:8095'
volumes:
- rems_dev_rems-admin2-sync:/rems-admin2:nocopy # nocopy is important
- rems_dev_rems-admin2-nodeModules:/rems-admin2/node_modules
Expand Down Expand Up @@ -169,6 +176,7 @@ services:
REMS_ADMIN_FHIR_PATH: http://rems-administrator:8090/4_0_0
ports:
- "3003:3003"
- "9080:9080"
volumes:
- rems_dev_rems-intermediary-sync:/rems-intermediary:nocopy # nocopy is important
- rems_dev_rems-intermediary-nodeModules:/rems-intermediary/node_modules
Expand Down
8 changes: 8 additions & 0 deletions docker-compose-local-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ services:
ports:
- "8090:8090"
- "8091:8091"
- "9090:9090"
- "9091:9091"
environment:
VSAC_API_KEY: ${VSAC_API_KEY}
MONGO_URL: mongodb://rems-user:pass@pims_remsadmin_mongo:27017
Expand All @@ -94,12 +96,17 @@ services:
ports:
- "8095:8095"
- "8096:8096"
- "9095:9095"
- "9096:9096"
environment:
VSAC_API_KEY: ${VSAC_API_KEY}
MONGO_DB_NAME: remsadmin2
MONGO_URL: mongodb://rems-user2:pass@pims_remsadmin_mongo:27017
SERVER_NAME: 'CodeX REMS Administrator Prototype #2'
PORT: 8095
FRONTEND_PORT: 9095
AUTH_SERVER_URI: 'http://localhost:8095'
RESOURCE_SERVER: 'http://localhost:8095'
depends_on:
pims_remsadmin_mongo:
condition: service_healthy
Expand Down Expand Up @@ -132,6 +139,7 @@ services:
REMS_ADMIN_FHIR_PATH: http://rems-administrator:8090/4_0_0
ports:
- "3003:3003"
- "9080:9080"
depends_on:
pims_remsadmin_mongo:
condition: service_healthy
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ services:
container_name: rems_prod_rems-administrator
ports: # Port binding to host from docker container
- "8090:8090"
- "9090:9090"
environment:
VSAC_API_KEY: ${VSAC_API_KEY}
MONGO_URL: mongodb://rems-user:pass@pims_remsadmin_mongo:27017
Expand All @@ -62,12 +63,16 @@ services:
container_name: rems_prod_rems-administrator2
ports: # Port binding to host from docker container
- "8095:8095"
- "9095:9095"
environment:
VSAC_API_KEY: ${VSAC_API_KEY}
MONGO_DB_NAME: remsadmin2
MONGO_URL: mongodb://rems-user2:pass@pims_remsadmin_mongo:27017
SERVER_NAME: 'CodeX REMS Administrator Prototype #2'
PORT: 8095
FRONTEND_PORT: 9095
AUTH_SERVER_URI: 'http://localhost:8095'
RESOURCE_SERVER: 'http://localhost:8095'
depends_on:
pims_remsadmin_mongo:
condition: service_healthy
Expand Down Expand Up @@ -119,6 +124,7 @@ services:
REMS_ADMIN_FHIR_PATH: http://rems-administrator:8090/4_0_0
ports:
- "3003:3003"
- "9080:9080"
depends_on:
pims_remsadmin_mongo:
condition: service_healthy
Expand Down
6 changes: 3 additions & 3 deletions docker-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ syncs:

rems_dev_rems-admin-sync:
src: '../rems-admin'
sync_excludes: ['node_modules']
sync_excludes: ['node_modules', './frontend/node_modules']

rems_dev_rems-admin2-sync:
src: '../rems-admin'
sync_excludes: ['node_modules']
sync_excludes: ['node_modules', './frontend/node_modules']


rems_dev_pims-sync:
Expand All @@ -30,4 +30,4 @@ syncs:

rems_dev_rems-intermediary-sync:
src: '../rems-intermediary'
sync_excludes: ['node_modules']
sync_excludes: ['node_modules', './frontend/node_modules']

0 comments on commit f0722be

Please sign in to comment.