From d6e1047ba230f38126a811f0b1594e2d44b7d74f Mon Sep 17 00:00:00 2001 From: Alpha Date: Thu, 31 Jan 2019 23:28:58 +0100 Subject: [PATCH 1/2] Fixes --- Dockerfile | 2 +- README.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7ed17c4..b012a91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,5 +17,5 @@ RUN go get; exit 0 WORKDIR $GOPATH/src/git.cliffbreak.de/Cliffbreak/tsviewer COPY config.json . RUN go build -EXPOSE 8080 + CMD ["./tsviewer"] \ No newline at end of file diff --git a/README.md b/README.md index ad720d6..6e288c2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,14 @@ A TS3 Viewer with REST API. +## DOCKER-Config + +```bash +docker build -t name/cont:ver . + +docker run -e ts3_ip="ts_ip", ts3_pw="quarry_pw", web_port="port" -d name/cont:ver +``` + # Features ## Config From 7ebfd7be085803a1fa2b4439130d344bc540dddb Mon Sep 17 00:00:00 2001 From: Alpha Date: Thu, 31 Jan 2019 23:36:07 +0100 Subject: [PATCH 2/2] readme --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e288c2..16a70cd 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,18 @@ A TS3 Viewer with REST API. ```bash docker build -t name/cont:ver . -docker run -e ts3_ip="ts_ip", ts3_pw="quarry_pw", web_port="port" -d name/cont:ver +docker run -e ts3_ip="ts_ip", ts3_pw="quarry_pw", web_port="port" -d -p 8080:8080 name/cont:ver +``` +ENV: +```Docker + +ENV ts3_ip=0.0.0.0 +ENV ts3_name=serveradmin +ENV ts3_pw=f3gWdOU3 +ENV ts3_port=9987 +ENV ts3_query=10011 +ENV web_port=8080 + ``` # Features