Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duxcore/docker-node-deploy
A Node.js-based deployment server that allows you to deploy and manage your docker containers
https://github.com/duxcore/docker-node-deploy
deploy deployment-automation deployment-manager docker nodejs
Last synced: about 2 months ago
JSON representation
A Node.js-based deployment server that allows you to deploy and manage your docker containers
- Host: GitHub
- URL: https://github.com/duxcore/docker-node-deploy
- Owner: duxcore
- License: mit
- Created: 2021-06-19T22:01:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-19T12:05:26.000Z (over 3 years ago)
- Last Synced: 2023-03-05T23:08:25.490Z (almost 2 years ago)
- Topics: deploy, deployment-automation, deployment-manager, docker, nodejs
- Language: TypeScript
- Homepage: https://duxcore.co
- Size: 65.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-node-deploy
A [node.js](https://nodejs.org/) based deployment server that allows you to deploy and manage your [docker containers](https://www.docker.com/)
### Running it locally
- Clone this repo
- Install it's dependencies by running `yarn` in the root of the project
- Build the deployment server using `yarn build`
- Make sure to set environment variables in `.env` *(example can be found in [`.env.example`](https://github.com/duxcore/docker-node-deploy/blob/main/.env.example))*
- Run the deployment server using `yarn start`### Methods
#### Deploy an environment```http
POST http://localhost:6969/deploy
```Payload:
```json
{
"url": "GIT_REPO_URL",
"branch": "REPO_BRANCH",
"envName": "ENVIRONMENT_NAME",
"containers": [
{
"dir": "CONTAINER_DIRECTORY",
"envVars": [
{
"key": "ENV_VAR_KEY",
"value": "ENV_VAR_VALUE"
}
]
}
]
}
```Returns:
```json
{
"success": true,
"data": {
"name": "ENVIRONMENT_NAME"
}
}
```#### Terminate an environment
```http
POST http://localhost:6969/terminate
```Payload:
```json
{
"envName": "ENVIRONMENT_NAME"
}
```Returns:
```json
{
"success": true,
"data": {
"name": "ENVIRONMENT_NAME"
}
}
```## Maintainers
- [@amitojsingh366](https://github.com/amitojsingh366)## License
docker-node-deploy is licensed under the MIT License## Contributing
Find something that is lacking? Fork the project and pull request!