Loading .github/workflows/dockerpublish.yml +19 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,25 @@ jobs: path: | log.log *.patch Health-checks-traefik: runs-on: ubuntu-latest env: SERVICE: traefik steps: - uses: actions/checkout@v2 - name: Caching uses: actions/cache@v2 with: path: /var/lib/docker/ key: ${{ runner.os }}-health-${{ github.job }} - name: Build the docker-compose stack run: docker-compose -f docker-compose.yml -f ${SERVICE}/docker-compose.${SERVICE}.yml up -d - name: Waiting for service startup (10s) run: sleep 10s - name: Check running containers run: docker-compose -f docker-compose.yml -f ${SERVICE}/docker-compose.${SERVICE}.yml ps - name: Check health run: docker-compose -f docker-compose.yml -f ${SERVICE}/docker-compose.${SERVICE}.yml ps | grep "Up (healthy)" Health-checks-nginx: runs-on: ubuntu-latest env: Loading traefik/docker-compose.traefik.yml +6 −0 Original line number Diff line number Diff line Loading @@ -6,12 +6,18 @@ services: command: > --api --api.statistics --ping=true ports: - '80:80' - '443:443' networks: - 'srv' restart: always healthcheck: test: ['CMD', './traefik', 'healthcheck'] interval: 10s timeout: 10s retries: 5 labels: - 'traefik.enable=true' - 'traefik.port=8080' Loading traefik/traefik.toml +1 −0 Original line number Diff line number Diff line Loading @@ -43,3 +43,4 @@ watch = true exposedByDefault = false network = "srv" [ping] Loading
.github/workflows/dockerpublish.yml +19 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,25 @@ jobs: path: | log.log *.patch Health-checks-traefik: runs-on: ubuntu-latest env: SERVICE: traefik steps: - uses: actions/checkout@v2 - name: Caching uses: actions/cache@v2 with: path: /var/lib/docker/ key: ${{ runner.os }}-health-${{ github.job }} - name: Build the docker-compose stack run: docker-compose -f docker-compose.yml -f ${SERVICE}/docker-compose.${SERVICE}.yml up -d - name: Waiting for service startup (10s) run: sleep 10s - name: Check running containers run: docker-compose -f docker-compose.yml -f ${SERVICE}/docker-compose.${SERVICE}.yml ps - name: Check health run: docker-compose -f docker-compose.yml -f ${SERVICE}/docker-compose.${SERVICE}.yml ps | grep "Up (healthy)" Health-checks-nginx: runs-on: ubuntu-latest env: Loading
traefik/docker-compose.traefik.yml +6 −0 Original line number Diff line number Diff line Loading @@ -6,12 +6,18 @@ services: command: > --api --api.statistics --ping=true ports: - '80:80' - '443:443' networks: - 'srv' restart: always healthcheck: test: ['CMD', './traefik', 'healthcheck'] interval: 10s timeout: 10s retries: 5 labels: - 'traefik.enable=true' - 'traefik.port=8080' Loading
traefik/traefik.toml +1 −0 Original line number Diff line number Diff line Loading @@ -43,3 +43,4 @@ watch = true exposedByDefault = false network = "srv" [ping]