From 2257bf3e9310429f51a97d949dd8fcae5197e9b2 Mon Sep 17 00:00:00 2001 From: TiynGER <43725244+TiynGER@users.noreply.github.com> Date: Sun, 1 Sep 2019 00:34:53 +0200 Subject: [PATCH] update README.md --- README.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8c28806..1184a46 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,22 @@ Set the following variables with the -e tag. | ------------- | ----- | ------- | | SERVER_NAME | set this to your IP/Domain (no "gopher://" needed!) | localhost | -## Example build/run-command +## Volumes -``` docker build -t gopherserver . ``` +Set the following volumes with the -v tag. -``` docker run -d -v gophermartenkante:/var/gopher -p 70:70 --restart unless-stopped -e SERVER_NAME='martenkante.de' --name gophermartenkante gopherserver ``` +| Volume-Name | Container mount | Description | +| -------------------- | --------------- | ----------- | +| gopherwebdir | /var/gopher | directory for the gopher page | + +## Ports + +Set the following ports with the -p tag. + +| Container port | recommended outside port | Description | +| -------------- | ------------------------ | ---------- | +| 70 | 70 | port for the gopher-protocol | + +## Example run-command + +``` docker run --name gopherserver -v gopherwebdir:/var/gopher -p 70:70 --restart unless-stopped -e SERVER_NAME= -d tiynger/gopherserver ```