Update README.md

This commit is contained in:
Linus Groh
2019-12-11 22:25:59 +00:00
parent 207a63c0d8
commit 012eb74837
+12 -1
View File
@@ -39,7 +39,7 @@ A pre-built Docker image is available on Docker Hub as [`owntracks/frontend`](ht
You can start a container directly via `docker run`:
```console
$ docker run -d -p 80:80 -e SERVER_HOST=otrecorder-host -e SERVER_PORT=otrecorder-port owntracks/frontend
$ docker run -d -p 80:80 -e SERVER_HOST=otrecorder-host -e SERVER_PORT=8083 owntracks/frontend
```
Or you can use `docker-compose` (if you also run the OwnTracks Recorder with the default
@@ -61,6 +61,17 @@ services:
restart: unless-stopped
```
To build the image from source replace `image:` with:
```yaml
build:
context: ./owntracks-frontend
dockerfile: docker/Dockerfile
```
(assuming you have this repository cloned to `owntracks-frontend` in the same
directory as `docker-compose.yml`)
### Manually
- Run `yarn install --production` to install dependencies