https://github.com/codestation/docker-deploy
Wrapper for docker stack deploy to handle config updates
https://github.com/codestation/docker-deploy
Last synced: 5 months ago
JSON representation
Wrapper for docker stack deploy to handle config updates
- Host: GitHub
- URL: https://github.com/codestation/docker-deploy
- Owner: codestation
- License: apache-2.0
- Created: 2019-07-29T20:58:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-17T15:29:45.000Z (over 1 year ago)
- Last Synced: 2025-08-09T21:48:50.501Z (11 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### Swarm Deploy Wrapper
This application makes managing docker configs/secrets more bearable.
The wrapper reads the configs and secrets section of the yaml file and creates environment variables based on the SHA256
of the referenced files (truncated to 16 characters). For example:
```yaml
configs:
my_config:
name: my_config.${MYFILE_XML}
file: ./myfile.xml
secrets:
my_secret:
name: service.${DATA_CREDENTIALS_JSON}
file: ./data.credentials.json
```
Will create two environment variables `MYFILE_XML` and `DATA_CREDENTIALS_JSON` with the truncated sha256sum of their
respective files and pass them to the `docker stack deploy` command.
The stack name can be ommited, in that case the current directory name will be used instead.
## Options
* `--compose-file, -c` Path to a Compose file, or "-" to read from stdin.
* `--with-registry-auth, -a` Send registry authentication details to Swarm agents.
* `--prune, -p` Prune services that are no longer referenced.
* `--host, -H` Daemon socket(s) to connect to.
## Config file
A file named `.docker-deploy.yml` can be placed in the current directory or any of the parent directories.
Currently, only the Docker host can be specified.
Example:
```yaml
host: ssh://user@example.org:port
```