https://github.com/m50/go-app-manager
An application manager written in go to handle starting/restarting/stopping of applications in a docker container, listening to a queue for commands.
https://github.com/m50/go-app-manager
Last synced: 12 months ago
JSON representation
An application manager written in go to handle starting/restarting/stopping of applications in a docker container, listening to a queue for commands.
- Host: GitHub
- URL: https://github.com/m50/go-app-manager
- Owner: m50
- License: mit
- Created: 2019-12-27T14:29:35.000Z (over 6 years ago)
- Default Branch: trunk
- Last Pushed: 2020-06-14T03:49:22.000Z (about 6 years ago)
- Last Synced: 2025-02-24T07:43:55.108Z (over 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AppMan
An application manager written in go to handle starting/restarting/stopping of
applications in a docker container, listening to a queue for commands.
## Configuration
In your project utilizing the docker container, you must provide a config file
called `.appman.config.json`. You can see an example file
[here.](./.appman.config.example.json)
In the configuration file you must provide the queue and the application you
are managing. Optionally, you may also provide the commands that the app uses,
in case the standard `start`, `stop`, `restart`, and `reload` aren't what is
meant to be used. Optionally, you may also choose whether stopping should just
send a kill command to the process.
- `app_path`: The full path to the application is necessary.
- `queue`: AppMan supports RabbitMQ or Redis for reading messages off the queue.
- Redis:
-Messages must have this format:
- Key: appman:\
- Value: \
- Example: `appman:application => stop`
- RabbitMQ: