Skip to content

dmfutcher/gemini-gemserv-docker-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gemini-gemserv-docker-template

A template for a Gemini protocol capsule using gemserv and Docker.

Instructions

  1. Generate keys & certs. To run locally we must create a cert & key for localhost domain. Other key uses capsule domain.
openssl req -x509 -newkey rsa:4096 -days 3650 -nodes -subj "/CN=your-domain.co.uk" -keyout gemini-key.rsa -out gemini-cert.pem 
openssl req -x509 -newkey rsa:4096 -days 3650 -nodes -subj "/CN=localhost" -keyout gemini-key-local.rsa -out gemini-cert-local.pem
  1. Build & run locally
docker build -t my-capsule:local -f Dockerfile.local .
docker run -itp 1965:1965 my-capsule:local

Use a Gemini browser to go to localhost and you should see the capsule running.

  1. Build for production
docker build -t my-capsule .
<then push to repository / deploy as any other Docker container>