You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. c40c14918c Merge branch 'main' of into main 2 years ago
.github/workflows master to main :) 2 years ago
.dockerignore Added github action build multi arch 2 years ago
Dockerfile Changed image to work 2 years ago
LICENSE Create LICENSE 2 years ago Add README 2 years ago
go.mod Get service status from dowker 2 years ago
go.sum Get service status from dowker 2 years ago
main.go Rename function 2 years ago



This is a service that can scale up or down a docker swarm service on demand. It basically starts a service when it's needed and then shut it down when it's no longer needed.


In order to use the service you should request the server according

GET service_url/?name=<service_name>&timeout=<timeout>

service_name: The name of the service you want to call (and start if necessary)

timeout: The duration after which the service should be shut down if idle (in second)


started: The service is already started

starting: The service is starting


To simply run the server you can use go run main.go.


To deploy this service in a container :

$ docker run -v /var/run/docker.sock:/var/run/docker.sock acouvreur/traefik-ondemand-service:latest