A gemini server using Agate
Go to file
George Sokianos 67b4c76435 Updated agate server to v3.3.0 2023-05-27 21:41:27 +01:00
content Added demo content 2023-01-29 14:22:25 +00:00
Dockerfile Updated agate server to v3.3.0 2023-05-27 21:41:27 +01:00
LICENSE Initial commit 2023-01-18 19:11:26 +01:00
Makefile Updated agate server to v3.3.0 2023-05-27 21:41:27 +01:00
README.md Added information in the readme file 2023-01-29 14:29:33 +00:00

README.md

agate-gemini docker image

A Gemini server using Agate.

This image is created having in mind to be used with a Traefik proxy server which will deal with the certication. That's why no certification is created inside the image in build time.

To use it with Traefik and docker-compose you need to create two files with the following content in the same folder.

.env

PROJECT_NAME=mygemini
HOSTNAME=mygemini.demo.com

docker-compose.yml

version: "3"

services:
  agate:
    image: walkero/agate-gemini
    container_name: "${PROJECT_NAME}_agate"
    environment:
      HOSTNAME: ${HOSTNAME}
    volumes:
      - ./content:/home/gemini/content
    labels:
      - "traefik.enable=true"
      - traefik.tcp.routers.${PROJECT_NAME}_gemini.entrypoints=gemini
      - traefik.tcp.routers.${PROJECT_NAME}_gemini.rule=HostSNI(`*`)
      - traefik.tcp.routers.${PROJECT_NAME}_gemini.service=${PROJECT_NAME}_gemini
      - traefik.tcp.services.${PROJECT_NAME}_gemini.loadbalancer.server.port=1965

To create the container you just need to run:

docker-compose up -d

Your gemtext files should be added at the content folder. Those are accessible from the container as well.