Skip to content

joshuadwire/docker-compose

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Supported tags and respective Dockerfile links

Note: This is similar to docker/compose image, but this image is based on Alpine on an auto-build.

What is docker-compose

Docker Compose is useful during development and to simplify building and running linked Docker images.

Usage example

$ docker run --rm \
    -v /var/run/docker.sock:/var/run/docker.sock:ro \
    -v $PWD:/code:ro \
    wernight/docker-compose build
  • Entrypoint is docker-compose so do not run wernight/docker-compose docker-compose.
  • /code is the default current working directory.
  • You can run as any user, for example as yourself by adding --user $UID:$GID.

Note: You should use a docker-compose version that is compatible with your docker version.

Alias

You may setup an alias to run this is if you were running docker-compose directly. Here is a function that works for Bash/ZSH (except the name, it's POSIX-compatible):

docker-compose () {
  DIRNAME=$"$(basename \"$PWD\")"
  docker run --rm -it \
    -v /var/run/docker.sock:/var/run/docker.sock:ro \
    -w "/$DIRNAME" -v "$PWD":"/$DIRNAME":ro \
    wernight/docker-compose "$@"
}

Feedbacks

Suggestions are welcome on our GitHub issue tracker.

About

Minimal docker-compose based on Alpine Linux.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%