From a70c5b60d1dabad96497aa81d9008aef8cb7f4ef Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Thu, 21 Mar 2024 12:59:50 -0500 Subject: [PATCH] add agate docker config --- agate/Dockerfile | 7 +++++++ agate/README.md | 5 +++++ agate/docker-compose.yaml | 12 ++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 agate/Dockerfile create mode 100644 agate/README.md create mode 100644 agate/docker-compose.yaml diff --git a/agate/Dockerfile b/agate/Dockerfile new file mode 100644 index 0000000..a4528b8 --- /dev/null +++ b/agate/Dockerfile @@ -0,0 +1,7 @@ +FROM rust:latest + +RUN cargo install agate + +WORKDIR /var/agate + +ENTRYPOINT ["agate"] diff --git a/agate/README.md b/agate/README.md new file mode 100644 index 0000000..0a86110 --- /dev/null +++ b/agate/README.md @@ -0,0 +1,5 @@ +# Agate + +[Agate](https://github.com/mbrubeck/agate) is a simple Gemini server for static files. + +This folder holds the Docker config that I use to manage my Agate server and serve my Capsule. diff --git a/agate/docker-compose.yaml b/agate/docker-compose.yaml new file mode 100644 index 0000000..4b5437c --- /dev/null +++ b/agate/docker-compose.yaml @@ -0,0 +1,12 @@ +version: "3.9" +services: + agate: + restart: always + build: . + container_name: agate + volumes: + - ./content:/var/agate/content + - ./certs:/var/agate/certs + ports: + - "1965:1965" + command: --content content --certs certs --addr 0.0.0.0:1965 --hostname gmi.runtimeterror.dev --hostname capsule.jbowdre.lol --lang en-US