1
0
mirror of https://github.com/tiyn/dockerfiles.git synced 2025-12-30 13:19:46 +01:00
Files
dockerfiles/gopher-server
2025-12-24 01:22:41 +01:00
..
2025-12-24 01:22:41 +01:00
2021-04-30 12:57:46 +02:00
2025-12-24 01:22:41 +01:00

Gopher Server

This is a dockerized version of a Gopher server. This container and its documentation was made by tiyn.

Setup

Navigate into the src directory and build the image using the following command.

docker build . -t gopher-server

Then create a rebuild.sh file. Change the settings accoding to your needs and run ./rebuild.sh afterward.

Environment-variables

Set the following variables with the -e tag.

Name Usage Default
SERVER_NAME set this to your IP/Domain (no "gopher://" needed!) localhost

Volumes

Set the following volumes with the -v tag.

Outside mount/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 Protocol Description
70 70 TCP port for the gopher-protocol

Example run-command

Run docker build . -t gopher-server in the src directory of this repository to build the image.

A container can be started with the following command.

rebuild.sh

docker stop gopher-server
docker rm gopher-server
docker run --name gopher-server -v gopherwebdir:/var/gopher -p 70:70 --restart unless-stopped -e SERVER_NAME=localhost -d gopher-server