Dockerized Gopher server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

1 year ago
1 year ago
1 year ago
1 month ago
1 month ago
  1. # DockerGopherServer
  2. This is a dockerized version of a gopher server.
  3. ## Environment-variables
  4. Set the following variables with the -e tag.
  5. | Name | Usage | Default |
  6. | ------------- | --------------------------------------------------- | ----------- |
  7. | `SERVER_NAME` | set this to your IP/Domain (no "gopher://" needed!) | `localhost` |
  8. ## Volumes
  9. Set the following volumes with the -v tag.
  10. | Volume-Name | Container mount | Description |
  11. | -------------- | --------------- | ----------------------------- |
  12. | `gopherwebdir` | `/var/gopher` | directory for the gopher page |
  13. ## Ports
  14. Set the following ports with the -p tag.
  15. | Container port | Recommended outside port | Protocol | Description |
  16. | -------------- | ------------------------ | -------- | ---------------------------- |
  17. | `70` | `70` | TCP | port for the gopher-protocol |
  18. ## Example run-command
  19. Either use the docker image `tiynger/gopherserver` or run
  20. `docker build . -t gopherserver` in the top directory of this repository.
  21. If so you need to change the command below apropiately
  22. (`tiynger/gopherserver` to `gopherserver`).
  23. `docker run --name gopherserver -v gopherwebdir:/var/gopher -p 70:70 --restart unless-stopped -e SERVER_NAME=<domain/ip_here> -d tiynger/gopherserver`