KISS REST API to pull and restart Docker containers
2.4K
KISS REST API to pull and restart Docker containers
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.
API_KEY=""
CONTAINER_NAME=""
curl --fail -vH "API-KEY: ${API_KEY:?}" -X POST "https://drpr-eve.jensw.be/${CONTAINER_NAME:?}/pull_restart/"
Content type
Image
Digest
sha256:c6edda632…
Size
12.9 MB
Last updated
about 3 years ago
docker pull jenswbe/docker-rest-puller-restarter