Skip to content

Fix bug with docker compose #30

Fix bug with docker compose

Fix bug with docker compose #30

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