Frontend to ydm (yet another docker manager)
Create or replace a drop
Body should contain a JavaScript drop definition
Perform an action against a drop
e.g. an API request like POST /drops/gitlab/install
is equivalent to the CLI command ydm install gitlab
Requires Docker v1.1.1
Requires ydm
Clone it.
node server.js
Set env var YDM_API_SECRET to require all requests to include header X-Auth-Token with that string. Use SSL
[program:ydm-api]
command=/home/keyvan/src/ydm-api/server.js
directory=/home/keyvan
stdout_logfile=/var/log/supervisor/%(program_name)s.log
redirect_stderr=true
autorestart=true
user=keyvan
environment=YDM_API_SECRET=secret,DOCKER_HOST=tcp://127.0.0.1:4243,YDM_API_DROPS=/home/keyvan/.ydm-api/drops,YDM_HOME=/home/keyvan/.ydm-api