Skip to content

Commit

Permalink
fixing health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh committed Nov 4, 2024
1 parent d3433ef commit fa9bec7
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 19 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/early-access-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: early-access-publish

on:
workflow_dispatch:
push:
branches:
- earl-access
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/generalmagicio/qacc-be:early-access
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY tsconfig.json .


RUN apk add --update alpine-sdk
RUN apk add git python3
RUN apk add git python3 curl
RUN apk add --no-cache chromium --repository=http://dl-cdn.alpinelinux.org/alpine/v3.18/main
RUN npm ci
RUN npm i -g ts-node
Expand Down
37 changes: 19 additions & 18 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
qacc-be-graph-ql1:
container_name: qacc-be-graph-ql1
image: ghcr.io/generalmagicio/qacc-be:staging
image: ghcr.io/generalmagicio/qacc-be:early-access
command: npm run start:docker:server
environment:
- ENVIRONMENT=production
Expand All @@ -27,7 +27,7 @@ services:

qacc-be-graph-ql2:
container_name: qacc-be-graph-ql2
image: ghcr.io/generalmagicio/qacc-be:staging
image: ghcr.io/generalmagicio/qacc-be:early-access
command: npm run start:docker:server
environment:
- ENVIRONMENT=production
Expand All @@ -53,7 +53,7 @@ services:

qacc-be-graph-ql3:
container_name: qacc-be-graph-ql3
image: ghcr.io/generalmagicio/qacc-be:staging
image: ghcr.io/generalmagicio/qacc-be:early-access
command: npm run start:docker:server
environment:
- ENVIRONMENT=production
Expand All @@ -79,7 +79,7 @@ services:

qacc-be-job1:
container_name: qacc-be-job1
image: ghcr.io/generalmagicio/qacc-be:staging
image: ghcr.io/generalmagicio/qacc-be:early-access
command: npm run start:docker:server
environment:
- ENVIRONMENT=production
Expand All @@ -105,7 +105,7 @@ services:

qacc-be-job2:
container_name: qacc-be-job2
image: ghcr.io/generalmagicio/qacc-be:staging
image: ghcr.io/generalmagicio/qacc-be:early-access
command: npm run start:docker:server
environment:
- ENVIRONMENT=production
Expand All @@ -131,7 +131,7 @@ services:

qacc-be-job3:
container_name: qacc-be-job3
image: ghcr.io/generalmagicio/qacc-be:staging
image: ghcr.io/generalmagicio/qacc-be:early-access
command: npm run start:docker:server
environment:
- ENVIRONMENT=production
Expand Down Expand Up @@ -168,18 +168,19 @@ services:
ports:
- '6379:6379'

# autoheal:
# image: willfarrell/autoheal:latest
# tty: true
# restart: always
# environment:
# - AUTOHEAL_INTERVAL=30
# - AUTOHEAL_START_PERIOD=300
# - AUTOHEAL_DEFAULT_STOP_TIMEOUT=10
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# networks:
# - qacc
autoheal:
container_name: autoheal
image: willfarrell/autoheal:latest
tty: true
restart: always
environment:
- AUTOHEAL_INTERVAL=30
- AUTOHEAL_START_PERIOD=300
- AUTOHEAL_DEFAULT_STOP_TIMEOUT=10
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- qacc

caddy:
image: caddy:2-alpine
Expand Down

0 comments on commit fa9bec7

Please sign in to comment.