diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e698e310..5336b788 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,6 +65,19 @@ jobs: DATABASE_PASSWORD JWT_SECRET SSL_PASSWORD + docker-push-prometheus: + runs-on: ubuntu-latest + needs: [ e2e-tests ] + steps: + - uses: actions/checkout@v4 + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: arquisoft/wiq_en2b/prometheus + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + workdir: api/monitoring/prometheus docker-push-kiwiq: runs-on: ubuntu-latest needs: [ e2e-tests ] diff --git a/docker-compose.yml b/docker-compose.yml index 8fa734aa..e587ec0a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -57,19 +57,6 @@ depends_on: - WIQ_DB - prometheus: - image: prom/prometheus - container_name: prometheus-${teamname:-defaultASW} - profiles: ["dev", "prod"] - networks: - mynetwork: - volumes: - - ./quiz-api/monitoring/prometheus:/etc/prometheus - - prometheus_data:/prometheus - - /certs:/etc/letsencrypt/kiwiq.run.place:ro - depends_on: - - api - kiwiq: image: ghcr.io/arquisoft/wiq_en2b/kiwiq:latest container_name: kiwiq @@ -99,16 +86,32 @@ - REACT_APP_API_ENDPOINT=${API_URI} networks: mynetwork: + + prometheus: + image: ghcr.io/arquisoft/wiq_en2b/prometheus:latest + container_name: prometheus-${teamname:-defaultASW} + profiles: ["dev", "prod"] + ports: + - "9090:9090" + networks: + mynetwork: + volumes: + - prometheus_data:/prometheus + - /certs:/etc/letsencrypt/kiwiq.run.place:ro + depends_on: + - api grafana: - image: grafana/grafana + image: ghcr.io/arquisoft/wiq_en2b/grafana:latest container_name: grafana-${teamname:-defaultASW} profiles: [ "dev" , "prod"] networks: mynetwork: volumes: - grafana_data:/var/lib/grafana - - ./quiz-api/monitoring/grafana/provisioning:/etc/grafana/provisioning + - /certs:/etc/letsencrypt/kiwiq.run.place:ro + ports: + - "9091:9091" environment: - GF_SERVER_HTTP_PORT=9091 - GF_AUTH_DISABLE_LOGIN_FORM=true