Skip to content
Snippets Groups Projects
Commit 90c48806 authored by Tanuja Selvaraj's avatar Tanuja Selvaraj
Browse files

Added mongo

parent 2a66b68c
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ EDATAPORTAL_PORT=3000
# ICAT+
CI_COMMIT_SHA= master # this could be commit sha or branch name
NPM_COMMAND=start #test -- --grep /logbook/
NPM_COMMAND=test -- --grep /logbook/
ICAT_PLUS_PORT=8000
# AUTH.DB
......
......@@ -61,7 +61,7 @@ services:
environment:
WAIT_HOSTS: icat:8080, mariadb:3306, auth-db:8080
WAIT_BEFORE: 60
WAIT_AFTER: 100
WAIT_AFTER: 20
WAIT_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 10
icat:
......@@ -112,3 +112,16 @@ services:
- MARIADB_DATABASE=${MARIADB_DATABASE}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
mongodb:
image: mongo:latest
restart: always
container_name: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
MONGO_INITDB_DATABASE: icatplus
command:
- '--logpath'
- '/var/log/mongodb/mongod.log'
ports:
- 27017:27017
......@@ -2,10 +2,10 @@ LOGBOOK_API_KEY="elogbook-be70ac55-fd08-4840-9b29-b73262958ca8"
ICAT_SERVER_URL="http://icat"
ICAT_SERVER_PORT=8080
MONGO_DB_URL=
MONGO_UNIT_ENABLED=1
MONGO_DB_URL=mongodb://mongo:mongo@mongodb:27017/icatplus?authSource=admin
MONGO_UNIT_ENABLED=0
LOGGING_LEVEL=0
LOGGING_LEVEL=silly
ELASTIC_SEARCH_SERVER="localhost:9200"
......
......@@ -22,7 +22,7 @@ RUN chmod +x /wait
ADD .env.test.compose /icat-plus/.env.test.compose
CMD /wait && git pull origin $CI_COMMIT_SHA && npm run configure:all && npm $NPM_COMMAND
CMD /wait && git pull origin $CI_COMMIT_SHA && npm run configure:all && npm start && tail -f /dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment