Sign inSign up

dockermgeo/composerapi

By dockermgeo

Updated almost 8 years ago

Apiinterface to create docker-compose commands

Image
0

144

dockermgeo/composerapi repository overview

API-Docs

You will find the Fullapidocs on http-Rootlevel "/" if you start this Dockerimage. The are running a Swagger-UI.

Usage

curl -X POST http://mydockerhost:5005/api/v2/$DEPLOY_NAME/$FUNCTION

Volumes & DEPLOY_NAME

The Workingdirectory is /compose, in the are the app-Folder (/compose/apps). This are the place for the Composefiles (YAML-Files). A Deployname is the name of a YAML-File.

Functions

The composerapi-service will serve follows routes.

POST

  • start
  • stop
  • restart
  • forcerestart

GET a JSON Result

  • status
  • config

Run / Deploy

composerapi:
  image: dockermgeo/composerapi:latest
  hostname: $DEPLOY_NAME
  container_name: $DEPLOY_NAME
  environment:
   - COMPOSE_DIR=/docker/compose
  ports:
   - "5005:5005"
  volumes:
   - /docker:/docker
   - /var/run/docker.sock:/var/run/docker.sock  

Tag summary

Content type

Image

Digest

Size

472.4 MB

Last updated

almost 8 years ago

docker pull dockermgeo/composerapi