diff options
| author | Arseney300 <Arseney300@gmail.com> | 2026-02-20 10:43:41 +0700 |
|---|---|---|
| committer | Arseney300 <Arseney300@gmail.com> | 2026-02-20 10:43:41 +0700 |
| commit | e702989894c4e2a2e0a910cdc071e565fceadef8 (patch) | |
| tree | 579b27c8ebaab3c19819b2771cf1d97aa5385464 /CLAUDE.md | |
| parent | fd82abff82e8c2f71bfcdb3330849ba7b520b798 (diff) | |
Add Gerrit code review service to git-server stack
Gerrit joins git-network (repo access) and jenkins_network (build triggers),
uses the official gerritcodereview/gerrit image with persistent storage under
/var/gerrit, and is reverse-proxied via nginx at gerrit.swave.lol and
swave.lol/gerrit. Updated certbot, setup guide, and project docs accordingly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -5,7 +5,7 @@ Bastion is a self-hosted server system on Debian that runs multiple services in ## Domain - Primary domain: `swave.lol` -- Subdomains: `blog.swave.lol`, `jenkins.swave.lol`, `cgit.swave.lol` +- Subdomains: `blog.swave.lol`, `jenkins.swave.lol`, `cgit.swave.lol`, `gerrit.swave.lol` ## Services / Stacks @@ -39,6 +39,15 @@ Bastion is a self-hosted server system on Debian that runs multiple services in - No host ports (accessed only via main nginx reverse proxy) - Accessible at `https://cgit.swave.lol` and `https://swave.lol/cgit` +### Gerrit (code review) +- Part of `git-server/server.yaml` compose stack +- Image: `gerritcodereview/gerrit:latest` (no custom Dockerfile) +- Networks: `git-network` (static IP 172.22.0.4) and `jenkins_network` +- Web UI on port 8080 internally, SSH on 29418 +- No host ports (accessed only via main nginx reverse proxy) +- Volumes: `/var/gerrit` (etc, git, db, index, cache), shared `/var/git/repos` +- Accessible at `https://gerrit.swave.lol` and `https://swave.lol/gerrit` + ### Jenkins - Dir: `jenkins/` - Compose: `jenkins/docker-compose.yaml`, builds from `jenkins/Dockerfile` @@ -62,16 +71,17 @@ Bastion is a self-hosted server system on Debian that runs multiple services in ## Networking Each stack has its own Docker network. Nginx joins all of them to reverse proxy: -- `git-network` — git-server + cgit + nginx +- `git-network` — git-server + cgit + gerrit + nginx - `ghost_network` — ghost + ghost-db + nginx -- `jenkins_network` — jenkins + nginx +- `jenkins_network` — jenkins + gerrit + nginx ## Startup Order 1. Portainer (standalone) 2. Git Server (creates git-network) 3. Ghost (creates ghost_network) 4. Jenkins (creates jenkins_network) -5. Nginx (joins all networks, must be last) +5. Gerrit (joins git-network + jenkins_network, both must exist) +6. Nginx (joins all networks, must be last) ## Key Files - `doc/setup-guide.md` — full build instructions from fresh Debian |
