mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
feat(readme): update Docker badge to reflect new deployment workflow.
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
name: ghstats
|
||||
|
||||
services:
|
||||
fetcher:
|
||||
image: ghcr.io/shaymanor/ghstats-fetcher:${IMAGE_TAG:-latest}
|
||||
container_name: ghstats-fetcher
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
GITHUB_PAT: ${GITHUB_PAT:?missing GITHUB_PAT}
|
||||
FETCHER_INTERNAL_TOKEN: ${FETCHER_INTERNAL_TOKEN:?missing FETCHER_INTERNAL_TOKEN}
|
||||
volumes:
|
||||
- ${HOME}/ghstats/data/fetcher:/app/data
|
||||
ports:
|
||||
- "127.0.0.1:5001:5001"
|
||||
|
||||
fetcher-cron:
|
||||
image: ghcr.io/shaymanor/ghstats-fetcher:${IMAGE_TAG:-latest}
|
||||
container_name: ghstats-fetcher-cron
|
||||
restart: unless-stopped
|
||||
command: ["python", "-m", "src.cron"]
|
||||
environment:
|
||||
GITHUB_PAT: ${GITHUB_PAT:?missing GITHUB_PAT}
|
||||
FETCHER_INTERNAL_TOKEN: ${FETCHER_INTERNAL_TOKEN:?missing FETCHER_INTERNAL_TOKEN}
|
||||
volumes:
|
||||
- ${HOME}/ghstats/data/fetcher:/app/data
|
||||
depends_on:
|
||||
- fetcher
|
||||
|
||||
generator:
|
||||
image: ghcr.io/shaymanor/ghstats-generator:${IMAGE_TAG:-latest}
|
||||
container_name: ghstats-generator
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
FETCHER_URL: http://fetcher:5001
|
||||
FETCHER_INTERNAL_TOKEN: ${FETCHER_INTERNAL_TOKEN:?missing FETCHER_INTERNAL_TOKEN}
|
||||
volumes:
|
||||
- ${HOME}/ghstats/data/generator:/app/data
|
||||
ports:
|
||||
- "5002:5002"
|
||||
depends_on:
|
||||
- fetcher
|
||||
|
||||
generator-worker:
|
||||
image: ghcr.io/shaymanor/ghstats-generator:${IMAGE_TAG:-latest}
|
||||
container_name: ghstats-generator-worker
|
||||
restart: unless-stopped
|
||||
command: ["python", "-m", "src.worker"]
|
||||
environment:
|
||||
FETCHER_URL: http://fetcher:5001
|
||||
FETCHER_INTERNAL_TOKEN: ${FETCHER_INTERNAL_TOKEN:?missing FETCHER_INTERNAL_TOKEN}
|
||||
volumes:
|
||||
- ${HOME}/ghstats/data/generator:/app/data
|
||||
depends_on:
|
||||
- generator
|
||||
|
||||
generator-cron:
|
||||
image: ghcr.io/shaymanor/ghstats-generator:${IMAGE_TAG:-latest}
|
||||
container_name: ghstats-generator-cron
|
||||
restart: unless-stopped
|
||||
command: ["python", "-m", "src.cron"]
|
||||
environment:
|
||||
FETCHER_URL: http://fetcher:5001
|
||||
FETCHER_INTERNAL_TOKEN: ${FETCHER_INTERNAL_TOKEN:?missing FETCHER_INTERNAL_TOKEN}
|
||||
volumes:
|
||||
- ${HOME}/ghstats/data/generator:/app/data
|
||||
depends_on:
|
||||
- generator
|
||||
|
||||
edge:
|
||||
image: ghcr.io/shaymanor/ghstats-edge:${IMAGE_TAG:-latest}
|
||||
container_name: ghstats-edge
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
GENERATOR_URL: http://generator:5002
|
||||
ports:
|
||||
- "5003:5003"
|
||||
depends_on:
|
||||
- generator
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Pulls the current image tag and brings up the compose stack.
|
||||
# Expects GITHUB_PAT, FETCHER_INTERNAL_TOKEN, and IMAGE_TAG to be present in
|
||||
# the environment (exported by the GitHub Actions deploy job).
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
mkdir -p "$HOME/ghstats/data/fetcher" "$HOME/ghstats/data/generator"
|
||||
|
||||
docker compose pull
|
||||
docker compose up -d --remove-orphans
|
||||
docker compose ps
|
||||
Reference in New Issue
Block a user