https://github.com/openware/compose-hook
https://github.com/openware/compose-hook
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/openware/compose-hook
- Owner: openware
- License: mit
- Created: 2020-01-17T13:12:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T18:47:22.000Z (about 3 years ago)
- Last Synced: 2025-07-18T14:53:51.801Z (8 months ago)
- Language: Ruby
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Compose-hook
Simple application to update a service managed by compose using a webhook.
The trigger is secured with a shared secret.
### Installation
Install the gem:
```
gem install compose-hook
```
Install the systemd service on the target machine:
```
bin/install_webhook
```
Create a config file of the following format:
```yaml
- domain: "www.example.com" # target domain
root: "/home/deploy/example" # the root location of docker-compose
subpath: "compose" # [optional] directory containing target Compose files
- domain: "its.awesome.com"
root: "/home/deploy/awesome"
subpath: ""
```
Export the config file path as `CONFIG_PATH` before launching the server.
### Usage
Test your installation with a payload
```
compose-payload *service* *docker image* *url*
```
Made with :heart: at [openware](https://www.openware.com/)