docker-rest-puller-restarter command - github.com/JenswBE/docker-rest-puller-restarter - Go Packages

docker-rest-puller-restarter

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 17 Imported by: 0

README

docker-rest-puller-restarter

KISS REST API to pull and restart Docker containers

Configuration

Create a config.yml file:

Clients: # Mandatory
  - Name: Test
    APIKey: TEST_API_KEY
    ContainerNames: nginx,traefik # Use * to allow all container names
Server: # Optional
  Debug: true # Defaults to false
  Port: 8080 # Defaults to 8080
  TrustedProxies: "172.16.0.0/16" # Defaults to 172.16.0.0/16, which is the default Docker IP range

See https://github.com/JenswBE/docker-rest-puller-restarter/blob/main/docker-compose.yml for a Docker Compose example.

Usage

API_KEY=""
CONTAINER_NAME=""
curl --fail -vH "API-KEY: ${API_KEY:?}" -X POST "https://drpr-eve.jensw.be/${CONTAINER_NAME:?}/pull_restart/"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL