Skip to content

Commit c3849a1

Browse files
committed
packaged as docker container for easy testing and deployment
1 parent b07badb commit c3849a1

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ title = ""
4040

4141
Once the `REPO_DIR` variable and `config.toml` file is set, executing the binary should serve the repos at the gemini port.
4242

43+
## Run from Docker
44+
45+
The UI is also packaged as a docker image for easy deployment. To run it, create the `config.toml` file and a TLS certificate and private key first (gemini uses TLS by default), then mount the `config.toml`, the certificate and private key and your repository directory into the container with the following command.
46+
47+
```
48+
# Paths used for the certificate and key are default let's encrypt paths
49+
docker run -p 1965:1965 \
50+
-v /etc/letsencrypt/live/yourdomain.com/fullchain.pem:/app/cert/cert.pem \
51+
-v /etc/letsencrypt/live/yourdomain.com/privkey.pem:/app/cert/key.pem \
52+
-v /my-repositories:/repositories
53+
-v $HOME/.config/config/config.toml:/root/.config/config/config.toml
54+
-it ayravat/gemini-git-browser:latest
55+
```
56+
57+
Ince the container is running you can access the UI at gemini://localhost/
58+
4359
## License
4460

4561
The source is released under the GNU GPL v3, a copy of which is included in the repository

deploy/environments/dockerhub/config.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ PACKAGE=docker
33
PUSH=docker
44
DOCKER_HOME="$HOME/.docker/ayravat"
55
POST_PUSH=""
6-
DOCKER_REGISTRY=https://index.docker.io/
7-
DS_DEBUG=true
6+
DOCKER_REGISTRY=https://registry-1.docker.io

0 commit comments

Comments
 (0)