This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

autodock hipache plugin

Project Description

Hipache Plugin for autodock.

autodock-hipache is MIT licensed.

Note

See: autodock

Basic Usage

Start the daemon:

$ docker run -d --name autodock prologic/autodock

Link and start the autodock Hipache Plugin:

$ docker run -d --link autodock prologic/autodock-hipache

Now whenever you start a new container autodock will listen for Docker events and discover containers that have been started. The autodock-hipache plugin will specifically listen for starting containers that have a VIRTUALHOST environment variable and reconfigure the running hipache container.

An optional ALIAS environment value can be given as an extra virtualhost typically used for a www. alias to a domain.

Start a “Hello World” Web Application:

$ docker run -d -e VIRTUALHOST=hello.local prologic/hello
curl -q -o - -H 'Host: hello.local' http://localhost/
Hello World!

Note

This method of hosting and managing webapps and websites is in production deployments and talked about in more detail in the post A Docker-based mini-PaaS.

docker-compose.yml:

autodock:
    image: prologic/autodock
    volumes:
        - /var/run/docker.sock:/var/run/docker.sock

autodockhipache:
    image: prologic/autodock-hipache
    links:
        - autodock
        - hipache:redis

sslcerts:
    image: prologic/mksslcrt
    command: "*.mydomain.com"

hipache:
    image: prologic/hipache
    ports:
        - "80:80"
        - "443:443"
    volumes_from:
        - sslcerts

hello:
    image: prologic/hello
    environment:
        - VIRTUALHOST=hello.mydomain.com
        - ALIAS=hello.local

Note

The version of Hipache used here will not startup unless you have setup SSL certificates, so the sslcerts volume is requried for a correctly functionining system.

Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
autodock_hipache-0.0.2-cp27-none-macosx_10_10_x86_64.whl (6.1 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 26, 2015
autodock-hipache-0.0.2.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Dec 26, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting