Skip to content

hrzg/docker-gollum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gollum Docker Container

Runs gollum/gollum in a rack webserver from a Docker container.

Installation

git clone https://github.com/hrzg/docker-gollum.git
cd docker-gollum

Before you can start using this container you have to prepare some data files which hold your SSH keys and needed configuration options.

To get started copy the data-dist folder to data

cp data-dist/ data

Afterwards update the following files with the SSH keys needed for push and pull access to the wiki repository id_rsa, id_rsa.pub.

You should also adjust the settings for your wiki repository in ssh_config and gitconfig.

Startup

Docker

You can start the container directly with docker:

docker run \
    -p 9292:9292 \
    -v path/to/docker-gollum/wiki:/wiki \
    -v path/to/docker-gollum/data:/data \
    -e [email protected]:path/name.git
    .

Advanced usage

fig

Or you can use the Dockerfile with fig:

wiki:
    build: path/to/docker-gollum
    ports: 
        - "9292:9292"
    expose:
        - "9292"
    volumes:
        - path/to/docker-gollum/wiki:/wiki
        - path/to/docker-gollum/data:/data
    environment:
        VIRTUAL_HOST: wiki.192.168.59.103.xip.io
        REPO_URL: [email protected]:path/name.git
    links:
        - rproxy
        
        
rproxy:
    image: jwilder/nginx-proxy
    ports:
        - "80:80"
    expose:
        - "80"
    volumes:
        - /var/run/docker.sock:/tmp/docker.sock

Note: The fig example also contains a reverse proxy image to access the Docker container.

Credits

This repository is inspired by the work of fooforge and suttang.

Links

About

Docker Container for Gollum Wiki

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published