https://github.com/peter-evans/docker-compose-actions-workflow
GitHub Actions workflow example using Docker Compose to build and test a multi-container stack
https://github.com/peter-evans/docker-compose-actions-workflow
actions-workflow docker docker-compose github-actions multi-container
Last synced: 3 months ago
JSON representation
GitHub Actions workflow example using Docker Compose to build and test a multi-container stack
- Host: GitHub
- URL: https://github.com/peter-evans/docker-compose-actions-workflow
- Owner: peter-evans
- License: mit
- Created: 2019-08-14T07:01:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-30T22:34:20.000Z (over 2 years ago)
- Last Synced: 2025-03-31T11:03:25.467Z (3 months ago)
- Topics: actions-workflow, docker, docker-compose, github-actions, multi-container
- Language: Python
- Size: 6.84 KB
- Stars: 293
- Watchers: 7
- Forks: 92
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-compose-actions-workflow
[](https://github.com/peter-evans/docker-compose-actions-workflow/actions)This is a GitHub Actions workflow example to demonstrate building and testing a multi-container stack using `docker-compose`.
This sample is based on the [Get started with Docker Compose](https://docs.docker.com/compose/gettingstarted/) documentation.
## GitHub Actions Workflow
**push.yml**
```yml
name: Docker Compose Actions Workflow
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the stack
run: docker-compose up -d
- name: Test
run: docker run --network container:webapp-frontend appropriate/curl -s --retry 10 --retry-connrefused http://localhost:5000/
```You can browse a run for this example [here](https://github.com/peter-evans/docker-compose-actions-workflow/actions/workflows/push.yml).
For more about testing containers before release see [Smoke Testing](https://github.com/peter-evans/smoke-testing).
## License
[MIT](LICENSE)