https://github.com/andy23512/rustre
A small command line program extracting a subset of services from a docker-compose file
https://github.com/andy23512/rustre
docker-compose
Last synced: about 2 months ago
JSON representation
A small command line program extracting a subset of services from a docker-compose file
- Host: GitHub
- URL: https://github.com/andy23512/rustre
- Owner: andy23512
- License: mit
- Created: 2019-05-31T14:44:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T01:43:29.000Z (almost 5 years ago)
- Last Synced: 2025-02-12T06:53:34.675Z (over 1 year ago)
- Topics: docker-compose
- Language: TypeScript
- Size: 72.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rustre
> A small command line program extracting a subset of services from a docker-compose file.
## Installation
```shell
$ npm i -g andy23512/rustre (or yarn global add andy23512/rustre)
```
## Usage
```shell
$ rustre
```
It would default read the `docker-compose.yaml` or `docker-compose.yml` file in the current working directory, and display an interactive menu to choose the services you want to extract. The resulting docker-compose config would be printed out on screen.
For non-default situation, you can specify your docker-compose file path in the first argument.
```shell
$ rustre path_to_your_docker_compose_file
```
Then you can directly pipe the output to a docker-compose command. Like this,
```shell
$ rustre | docker-compose up -f -
```