Skip to content

sheurich/docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose v2 in Docker

A containerized docker compose based on Docker in Docker and the Docker Compose v2 plugin.

Using

Run the container using an executable file, e.g. ./docker-compose:

docker run --rm -v $(pwd):$(pwd):ro -w $(pwd) \
    -v /var/run/docker.sock:/var/run/docker.sock \
    docker-compose $@

or define a shell alias:

alias docker-compose='docker run --rm \
    -v $(pwd):$(pwd):ro -w $(pwd) \
    -v /var/run/docker.sock:/var/run/docker.sock \
    docker-compose '

Building

Run ./build to execute:

docker build --pull --tag docker-compose - <Dockerfile

Testing

Run ./test to execute run/ps/down commands using included docker-compose.yml.

Continuous Integration

The image is built daily using the latest versions of Docker and Docker Compose.