https://github.com/frncsdrk/dcc.sh
docker compose companion
https://github.com/frncsdrk/dcc.sh
bash dcc docker docker-compose shell
Last synced: 6 months ago
JSON representation
docker compose companion
- Host: GitHub
- URL: https://github.com/frncsdrk/dcc.sh
- Owner: frncsdrk
- License: mit
- Created: 2019-07-04T18:12:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-04T13:36:21.000Z (almost 6 years ago)
- Last Synced: 2025-03-03T08:45:36.747Z (over 1 year ago)
- Topics: bash, dcc, docker, docker-compose, shell
- Language: Shell
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dcc.sh
> docker compose companion
## Usage
```
dcc.sh
Usage:
dcc.sh ]> [-h|--help] [-V|--version] [-D|--debug]
[any docker-compose command] [restart] [self]
dcc.sh self
Options:
-D|--debug
enable debug mode
-h|--help
show this message
-t|--target
pass target
-V|--version
version
[any docker-compose command]
execute docker compose command
restart [-c|--clean]
restart docker compose
self
self command
Examples:
dcc.sh -V
display version
dcc.sh -h
display this message
dcc.sh -t all ps
execute 'docker-compose ps' in directories listed in target file 'all'
dcc.sh service/ ps
execute 'docker-compose ps' in service directory
dcc.sh service/ restart
restart service docker compose w/o removing containers
dcc.sh self upgrade
upgrade dcc.sh to latest version
```
### Target files
You can create text files in the directory `.dcc/`, containing a list of directories one on each line.
The targets name equals the name of the target file.
example:
```
service1/
service2/
```
## Bugs
none
## Installation
### automatically
Run `curl https://raw.githubusercontent.com/frncsdrk/dcc.sh/master/download.sh -sSf | sudo bash`
### manually
- clone the repo
- run `./setup.sh i` (requires `sudo`)
## License
[MIT](https://github.com/frncsdrk/dcc.sh/blob/master/LICENSE) (c) frncsdrk 2019 - 2020