From 012eb748372958ca01b5819d6119c1e5b95dcdff Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 11 Dec 2019 22:25:59 +0000 Subject: [PATCH] Update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b2bf2ca..94e7f6b 100644 --- a/README.md +++ b/README.md @@ -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