Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmaier/docker-compose
Container with Docker + Docker Compose - good for CI
https://github.com/tmaier/docker-compose
docker docker-compose gitlab-ci
Last synced: about 2 months ago
JSON representation
Container with Docker + Docker Compose - good for CI
- Host: GitHub
- URL: https://github.com/tmaier/docker-compose
- Owner: tmaier
- License: mit
- Created: 2017-01-04T00:06:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-01T13:24:24.000Z (about 2 years ago)
- Last Synced: 2024-10-11T18:15:28.549Z (2 months ago)
- Topics: docker, docker-compose, gitlab-ci
- Language: Shell
- Homepage: https://hub.docker.com/r/tmaier/docker-compose/
- Size: 48.8 KB
- Stars: 152
- Watchers: 9
- Forks: 50
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Compose
[![Docker Automated build](https://img.shields.io/docker/automated/tmaier/docker-compose.svg)](https://hub.docker.com/r/tmaier/docker-compose/)
[![Docker Pulls](https://img.shields.io/docker/pulls/tmaier/docker-compose.svg)](https://hub.docker.com/r/tmaier/docker-compose/)
[![GitHub issues](https://img.shields.io/github/issues/tmaier/docker-compose.svg)](https://github.com/tmaier/docker-compose/issues)
[![GitHub stars](https://img.shields.io/github/stars/tmaier/docker-compose.svg?style=social&label=Star)](https://github.com/tmaier/docker-compose)This docker image installs docker-compose on top of the `docker` image.
This is very useful for CI pipelines, which leverage "Docker in Docker".## This Docker image is DEPRECATED
This image is deprecated, since the [`docker` image](https://hub.docker.com/_/docker) has now Docker Compose included.
This has been introduced by [docker-library/docker#361](https://github.com/docker-library/docker/pull/361).## Docker versions supported
The Docker Compose versions supported here use the most recent docker version compatible with it.
All available Docker Engine versions and the respective Docker Compose versions are defined in [`DOCKER_AND_COMPOSE_VERSION_MATRIX`](./DOCKER_AND_COMPOSE_VERSION_MATRIX).
Please open an issue or a pull request (preferred) [at GitHub](https://github.com/tmaier/docker-compose), if a version is missing.
**Note:** In the past. this docker image (tags) focused on the docker version (e.g. `latest`, `20.10`, `19.03` and `19`).
But as the docker releases got less disruptive, the approach changes to use the docker compose version as tags.## Usage instructions for GitLab CI
You may use it like this in your `.gitlab-ci.yml` file.
```yaml
image: tmaier/docker-compose:latestservices:
- docker:dindbefore_script:
- docker info
- docker-compose --versionbuild image:
stage: build
script:
- docker-compose build
```## How to add support for a new docker version to this repository?
You must only provide a Pull Request for the file [`DOCKER_AND_COMPOSE_VERSION_MATRIX`](./DOCKER_AND_COMPOSE_VERSION_MATRIX).
`DOCKER_AND_COMPOSE_VERSION_MATRIX` specifies in the first column the docker version.
The second column states the most recent release of docker-compose when the docker version has been released.You can see the latest matching versions of both by checking their release notes:
- https://github.com/docker/docker-ce/releases or https://hub.docker.com/_/docker
- https://github.com/docker/compose/releases## Common issues and possible fixes
### `ERROR: error during connect: Get http://docker:2375/v1.40/info: dial tcp: ...`
> As of version 19.03, docker:dind will automatically generate TLS certificates and require using them for communication.
See
## Author
[Tobias L. Maier](http://tobiasmaier.info) for [BauCloud GmbH](https://www.baucloud.com)