https://github.com/graphaelli/decompose
Convert Docker Compose YAML into Docker commands.
https://github.com/graphaelli/decompose
Last synced: 10 months ago
JSON representation
Convert Docker Compose YAML into Docker commands.
- Host: GitHub
- URL: https://github.com/graphaelli/decompose
- Owner: graphaelli
- License: mit
- Created: 2015-11-19T18:37:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-03T06:46:13.000Z (almost 11 years ago)
- Last Synced: 2025-04-03T11:28:18.726Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# decompose
Convert Docker Compose YAML into Docker commands.
This package is still in flux. And has bugs.
## Installation
Install or upgrade Decompose with this command.
```
go get -u github.com/variadico/decompose/cmd/decompose
```
## Usage
```
decompose docker-compose.yml
```
If your `docker-compose.yml` looks like this,
```
postgres:
image: postgres:latest
ports:
- "5432"
myapp:
build: .
links:
- postgres:db
ports:
- "80:80"
environment:
- FOO=bar
- FIZZ=buzz
```
then, `decompose` will output these commands.
```
docker run --name=dir_postgres --publish=5432 postgres:latest
docker build --tag dir_myapp .
docker run --name=dir_myapp --env=FOO=bar --env=FIZZ=buzz --link=postgres:db --publish=80:80 dir_myapp
```
Names will be prefixed with the name of the directory that `docker-compose.yml`
is in.