Commit ecdd3cf0 authored by Reza Sahebgharan's avatar Reza Sahebgharan

update readme

parent f9989764
## Installation Guide
1. create a folder in the production server for example in the drive C(ex:C:/build)
- 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)
- navigate to created folder in previous step 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
- 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://karname-broker"}'
mongo:
image: repo.marcopacs.com/karname/mongo-windows
volumes:
- C:\data\db:C:\data\db
volumes:
data:
networks:
default:
external:
name: nat
```
- navigate to Drive C and create a folder called "data"
- navigate to C:/data and create a folder called "db"
- open CMD
- CD to created folder in step 1 (ex: cd C:/build)
-------------------------------------------------------------------
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)
- login into repo.marcopacs.com with following command:
8. login into repo.marcopacs.com with following command:
##### docker login -u username -p password repo.marcopacs.com
--------------------------------------------------------------------
docker login -u username -p password repo.marcopacs.com
--------------------------------------------------------------------
9. run following command:
- run following command:
#####docker-compose up -d --force-recreate
--------------------------------------------------------------------
docker-compose up -d --force-recreate
--------------------------------------------------------------------
- goto localhost
10. goto localhost
in this app data of mongodb will be mapped to created folder in step 5.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment