Sign inSign up

schmunk42/toran-proxy

By schmunk42

Updated over 10 years ago

Image
0

817

schmunk42/toran-proxy repository overview

PrimeTime Toran Proxy Docker Image

Features
  • non-priviliged user (alpha)
  • environment based configuration
  • ssh for git proxy
  • automatically sets up location for mirrors
  • generates mirror urls for toran config
  • cron set to run every minute
  • based on phusion-baseimage
  • installs github oauth token
  • add custom public key through environment variable
Environment Variables
KeyValueDefault
SECRETSecretRandomString
TORAN_SCHEMEProtocolhttp
TORAN_HTTP_PORTHTTP Port80
TORAN_HTTPS_PORTHTTPS Port443
TORAN_HOSTHostnameChangeMe
TORAN_BASE_URLBase URLNULL
GITHUB_OAUTHGithub OAuthChangeMe
PUB_KEYPublic key for Alpha userNULL
Usage

Run a container from the image

docker run \
    -e TORAN_HOST=docker.local \
    -e SECRET=secret \
    -e GITHUB_OAUTH=1ab2c \
    -p 80 \
    schmunk42/toran-proxy

    
docker-compose

Mount defaults.yml

toran:
  image: schmunk42/toran-proxy:1.4.0
  environment:
    VIRTUAL_HOST: toran.example.com
    TORAN_HOST: toran.example.com
    CERT_NAME: default
    TORAN_SCHEME: https
    SECRET: <INSERT_SECRET>_
    GITHUB_OAUTH: <YOUR_TOKEN>
  ports:
    - '8380:80'
  restart: always
  volumes:
    - ./custom/init.sh:/root/init.sh
    - ./custom/auth.json:/var/www/toran/app/toran/composer/auth.json
    - ./custom/config.yml:/var/www/toran/app/toran/config.yml
    - ./custom/defaults.yml:/var/www/toran/app/config/defaults.yml
    - ./persist/toran/mirrors:/home/alpha/mirrors
    - ./persist/toran/app/cache:/var/www/toran/app/cache
    - ./persist/toran/cache:/var/www/toran/app/toran/cache
  command: bash /root/init.sh

Tag summary

Content type

Image

Digest

sha256:2edd3401b

Size

218.1 MB

Last updated

over 10 years ago

docker pull schmunk42/toran-proxy