Commit ecdd3cf0 authored by Reza Sahebgharan's avatar Reza Sahebgharan

update readme

parent f9989764
## Installation Guide ## 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 * 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 * if the worklist services have been deployed in a container, "worklistUrl" must be container_name of worklist in docker
----------------------------------------------------------------- ```
version: '3' version: '3'
services: services:
app: app:
container_name: karname-app container_name: karname-app
restart: always restart: always
image: repo.marcopacs.com/karname/karname-app image: repo.marcopacs.com/karname/karname-app
ports: ports:
- '80:3000' - '80:3000'
depends_on: depends_on:
- mongo - mongo
links: links:
- mongo - mongo
environment: environment:
ROOT_URL: ${APP_ROOT_URL:-http://localhost} ROOT_URL: ${APP_ROOT_URL:-http://localhost}
MONGO_URL: mongodb://mongo:27017/karname MONGO_URL: mongodb://mongo:27017/karname
PORT: 3000 PORT: 3000
METEOR_SETTINGS: '{"worklistUrl":"http://karname-broker"}' METEOR_SETTINGS: '{"worklistUrl":"http://karname-broker"}'
mongo: mongo:
image: repo.marcopacs.com/karname/mongo-windows image: repo.marcopacs.com/karname/mongo-windows
volumes: volumes:
- C:\data\db:C:\data\db - C:\data\db:C:\data\db
volumes: volumes:
data: data:
networks: networks:
default: default:
external: external:
name: nat name: nat
```
- navigate to Drive C and create a folder called "data"
-------------------------------------------------------------------
4. navigate to Drive C and create a folder called "data" - navigate to C:/data and create a folder called "db"
5. navigate to C:/data and create a folder called "db" - open CMD
6. open CMD - CD to created folder in step 1 (ex: cd C:/build)
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
-------------------------------------------------------------------- - goto localhost
docker-compose up -d --force-recreate
--------------------------------------------------------------------
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