Skip to main content

autodock hipache plugin

Project description

Hipache Plugin for 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.

Start a “Hello World” Web Application:

$ docker run -d -e VIRTUALHOST=hello.local prologic/hello

Now assuming you had hello.local configured in your /etc/hosts pointing to your hipache container you can now visit http://hello.local/

echo "127.0.0.1 hello.local" >> /etc/hosts
curl -q -o - http://hello.local/
Hello World!

docker-compose.yml:

autodock:
    image: prologic/autodock
    ports:
        - "1338:1338/udp"
        - "1338:1338/tcp"
    volumes:
        - /var/run/docker.sock:/var/run/docker.sock

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

hello:
    image: prologic/hello
    environment:
        - VIRTUALHOST=hello.local

hipache:
    image: hipache
    ports:
        - 80:80
        - 443:443

Project details


Download files

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

Source Distribution

autodock-hipache-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file autodock-hipache-0.0.1.tar.gz.

File metadata

File hashes

Hashes for autodock-hipache-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0112857b801173572bf8a6d2979723bb91f8941fef3c60e8d6aa1b9cd0e9b6bf
MD5 7e7b949756fdbd929b25e565ccd4f14e
BLAKE2b-256 757a8650a19a975e5b0494e49ccfb1819500101bd6d9aef50e9534f9061cdee1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page