Skip to content

Merge pull request #20 from sentemon/fix-bug-with-docker-compose #32

Merge pull request #20 from sentemon/fix-bug-with-docker-compose

Merge pull request #20 from sentemon/fix-bug-with-docker-compose #32

Workflow file for this run

name: Docker Compose Build
on:
push:
branches:
- main
- develop
pull_request:
branches: [ develop ]
jobs:
docker-compose:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker Compose
run: docker compose build --no-cache
- name: Start Docker Compose
run: docker compose up -d
# ToDo
# - name: Health Check AuthService
# run: |
# echo "Checking health..."
# for i in {1..10}; do
# curl --fail http://localhost:8000/auth/health && break || sleep 5
# curl --fail http://gateway:8000/auth/health && break || sleep 5
# done
# curl --fail http://localhost:8000/auth/health || exit 1
#
# - name: Health Check PostService
# run: |
# echo "Checking health..."
# for i in {1..10}; do
# curl --fail http://localhost:8000/post/health && break || sleep 5
# curl --fail http://gateway:8000/post/health && break || sleep 5
# done
# curl --fail http://localhost:8000/post/health || exit 1