1
0
mirror of https://github.com/tiyn/dockerfiles.git synced 2025-12-31 05:39:46 +01:00
Files
dockerfiles/gopher-server/README.md
2025-12-24 01:00:32 +01:00

34 lines
1.2 KiB
Markdown

# Gopher Server
This is a dockerized version of a Gopher server.
## 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.
| 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 top directory of this repository.
`docker run --name gopher-server -v gopherwebdir:/var/gopher -p 70:70 --restart unless-stopped -e SERVER_NAME=<domain/ip_here> -d gopher-server`