https://github.com/codex-team/fastdeployserver
Service that will stop and restart your docker-compose services on the fly based on images
https://github.com/codex-team/fastdeployserver
Last synced: about 1 year ago
JSON representation
Service that will stop and restart your docker-compose services on the fly based on images
- Host: GitHub
- URL: https://github.com/codex-team/fastdeployserver
- Owner: codex-team
- Created: 2020-08-27T08:04:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-30T09:48:25.000Z (over 2 years ago)
- Last Synced: 2025-05-31T12:29:19.938Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 6.19 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fast Deploy Server
Helps to simply pull and restart docker-compose images
## Usage
FastDeployServer continuously monitor multiple docker-compose configurations
and repitedly check if some of services use outdated images.
FastDeployServer will pull images from remote repository, stop Docker containers that
use these images and restart docker-compose services that use these images.
```
Usage of ./fastDeployServer:
-f value
docker-compose configuration path
-interval duration
server name (default 15s)
-level value
logging level (allowed: [panic fatal error warn info debug trace])
-name string
server name (default "default")
-password string
docker user password
-token string
Hawk access token
-username string
docker user
-webhook string
notification URI from CodeX Bot
```
### Example
Say you have the following docker-compose.yml configuration
```
version: "3.2"
services:
collector:
image: codexteamuser/hawk-collector:prod
restart: unless-stopped
garage:
image: codexteamuser/hawk-garage:prod
restart: unless-stopped
```
and you want to restart `hawk-collector` and `hawk-garage` services if there is an updated image
`codexteamuser/hawk-collector:prod` or `codexteamuser/hawk-garage:prod`.
Just run the FastDeployServer `./fastDeployServer -f docker-compose.yml` and it will start
checking pulling image updates every 20 seconds.
* You can configure interval as `./fastDeployServer -f docker-compose.yml -interval 5m`
* You can get notification via CodeX Bot as `./fastDeployServer -f docker-compose.yml -webhook https://notify.bot.codex.so/u/<...>`
* You can vary bot notification with `-name myserver` and get message `📦 myserver has been deployed: codexteamuser/hawk-garage:prod`
## Build
To build binary for Linux, run and then copy `fastDeployServer` binary wherever you want
```
GOOS=linux GOARCH=amd64 go build .
```