Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added instructions for building and running for a specific hostname
  • Loading branch information
derbylock committed Sep 24, 2019
1 parent 4ed7b92 commit 4ee701a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@

Easy markdown-based wiki written in Go language and React with the usage of TOAST UI Editor for the great markdown WYSIWIG editing

## Build and run
## Build and run on localhost

```bash
docker build -t ewi .
docker run --memory="500m" --restart=always --name ewi -v ewi-repo:/var/lib/ewi-server/repo -d -p 8088:80 -p 8888:8888 ewi -build=`git rev-parse HEAD`
```


## Run
## Run on localhost without build

```bash
docker run --memory="500m" --restart=always --name ewi -v ewi-repo:/var/lib/ewi-server/repo -d -p 8088:80 -p 8888:8888 derbylock/ewi:latest -build=`git rev-parse HEAD`
```

## Build and run for a specific hostname

```bash
docker build --build-arg EWI_SERVER_PATH="http://hostname:8888/" -t ewi .
docker run --memory="500m" --restart=always --name ewi -v ewi-repo:/var/lib/ewi-server/repo -d -p 8088:80 -p 8888:8888 ewi -build=`git rev-parse HEAD`
```

## Usage

Open in browser http://localhost:8088/

0 comments on commit 4ee701a

Please sign in to comment.