## Installation Guide

1. create a folder in the production server for example in the drive C(ex:C:/build)

2. navigate to created folder in step 1 and create a file called docker-compose.yml (ex: c:/build/docker-compose.yml) 

3. open docker-compose.yml with an editor and paste following statements in the created docker compose file 
    * please consider that "worklistUrl" is the ip of worklist services for fetching and editing worklists
    * if the worklist services have been deployed in a container, "worklistUrl" must be container_name of worklist in docker

    -----------------------------------------------------------------  
version: '3'

services:
  app:
    container_name: karname-app
    restart: always
    image: repo.marcopacs.com/karname/karname-app
    ports:
      - '80:3000'
    depends_on:
      - mongo
    links: 
      - mongo
    environment:
      ROOT_URL: ${APP_ROOT_URL:-http://localhost}
      MONGO_URL: mongodb://mongo:27017/karname
      PORT: 3000
      METEOR_SETTINGS: '{"worklistUrl":"http://192.168.0.163"}'
  mongo:
    image: repo.marcopacs.com/karname/mongo-windows
    volumes:
      - C:\data\db:C:\data\db

volumes:
  data: 
    -------------------------------------------------------------------

4. navigate to Drive C and create a folder called "data"

5. navigate to C:/data and create a folder called "db"

6. open CMD

7. CD to created folder in step 1 (ex: cd C:/build)

8. login into repo.marcopacs.com with following command:

    --------------------------------------------------------------------
    docker login -u username -p password repo.marcopacs.com
    --------------------------------------------------------------------

9. run following command: 

    --------------------------------------------------------------------
    docker-compose up -d --force-recreate
    --------------------------------------------------------------------

10. goto localhost

in this app data of mongodb will be mapped to created folder in step 5.


