All Projects → peter-evans → docker-compose-actions-workflow

peter-evans / docker-compose-actions-workflow

Licence: MIT license
GitHub Actions workflow example using Docker Compose to build and test a multi-container stack

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-compose-actions-workflow

multicontainer-demo-rpi3
A demo of balena multicontainer on Raspberry Pi3 with PiTFT LCDs
Stars: ✭ 18 (-92.68%)
Mutual labels:  multi-container
rabbitmq-labs
The source code for my RabbitMQ tutorials.
Stars: ✭ 45 (-81.71%)
Mutual labels:  multi-container

docker-compose-actions-workflow

Actions Status

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

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

For more about testing containers before release see Smoke Testing.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].