Public | Automated Build

Last pushed: 8 months ago
Short Description
Auto-deploy Docker image.
Full Description

Docker Auto Deploy

[][hub]
[][hub]

Introduction

Super simple listener base based on
docker-hook.

Used to trigger re-deployment when any Docker Hub web-hook is fired.

Includes

Notes

Here is an example docker-compose.yml file that uses this Docker Image, to
listen to web-hooks on port 8080. When a hook is received, it will trigger
docker-compose pull and docker-compose up -d in the volume
/deploy.

version: "2"
services:
  auto-deploy: 
    build: ./
    image: "livingstone/auto-deploy"
    container_name: docker-auto-deploy
    restart: always
    environment:
      - "DIR=/opt/docker-image"
      - "AUTH_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "/root/.docker:/root/.docker"
      - "/opt/docker-image:/opt/docker-image"
    ports:
      - "8000:8000"

Current maintainers

Docker Pull Command
Owner
livingstoneonline