fauria/hn
Docker image to deploy Hacker News like sites. Supports Google Analytics and many customizations.
100K+
Roll your own Hacker News clone with this Docker image.
It is based on Anarki, a publicly modifiable 'wiki-like' fork of Arc Lisp.
It allows the customization of the following features:
You can download the image using the following command:
docker pull fauria/hn
The customization of the HN clone is done through the following environment variables:
SITE_NAME
SITE_DESCRIPTION
SITE_URL
PARENT_URL
SITE_URL
.ADMIN_USER
RGB_COLOR
FAVICON_URL
GA_CODE
The image exposes port 8080
and exports two volumes:
/anarki/static
: Static files such as images. UID
: 0, GID
: 2./anarki/www
: User generated content and logs. UID
: 0, GID
: 2.Create a temporary container for testing purposes:
docker run -i -t --rm -e SITE_URL="http://127.0.0.1/" -e PARENT_URL="http://127.0.0.1/" -p 80:8080 fauria/hn
Create a production container, such as KeyDao:
docker run -e RGB_COLOR="649afa" -e ADMIN_USER=fauria -e SITE_NAME="KeyDao" -e SITE_DESCRIPTION="BlockChain news aggregator" -e SITE_URL="https://keydao.com/" -e PARENT_URL="https://keydao.com/" -e GA_CODE="UA-87936404-1" -p $COREOS_PRIVATE_IPV4:8080 -v /srv/keydao/www:/anarki/www -v /srv/keydao/static:/anarki/static -d --restart=always --name keydao fauria/hn
Note: This container is intended to be used behind a proxy such as Nginx.
docker pull fauria/hn