Skip to content
GitHub Actions workflow example using Docker Compose to build and test a multi-container stack
Python Dockerfile
Branch: master
Clone or download
Latest commit fa5cdee Aug 14, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Add app and workflow Aug 14, 2019
Dockerfile Add app and workflow Aug 14, 2019
LICENSE Initial commit Aug 14, 2019 Update README Aug 14, 2019 Add app and workflow Aug 14, 2019
docker-compose.yml Add app and workflow Aug 14, 2019


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 documentation.

GitHub Actions Workflow


name: Docker Compose Actions Workflow
on: push
    runs-on: ubuntu-latest
    - uses: actions/checkout@master
    - 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.

For more about testing containers before release see Smoke Testing.


MIT License - see the LICENSE file for details

You can’t perform that action at this time.