diff options
| author | Arseney300 <Arseney300@gmail.com> | 2026-02-20 10:49:36 +0700 |
|---|---|---|
| committer | Arseney300 <Arseney300@gmail.com> | 2026-02-20 10:49:36 +0700 |
| commit | 89206a3015e6276735687fe171eb2435cb59b375 (patch) | |
| tree | 7f4b15b33deb46f5db6f274fae248a2d608bd679 /CLAUDE.md | |
| parent | e702989894c4e2a2e0a910cdc071e565fceadef8 (diff) | |
Add git-server to jenkins_network with static IPs
Define subnet 172.23.0.0/16 for jenkins_network with static IPs:
jenkins (172.23.0.2), git-server (172.23.0.3), gerrit (172.23.0.4).
This allows git-server to communicate directly with Jenkins for
build triggers and webhook integrations.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -24,7 +24,7 @@ Bastion is a self-hosted server system on Debian that runs multiple services in ### Git Server - Dir: `git-server/` - Compose: `git-server/server.yaml`, needs `docker build -t git-server .` first -- Network: `git-network` (172.22.0.0/16), static IP 172.22.0.2 +- Networks: `git-network` (172.22.0.0/16, static IP 172.22.0.2) and `jenkins_network` (172.23.0.0/16, static IP 172.23.0.3) - Ports: 22 (SSH), 9418 (git daemon) - Volumes: `/var/git_ssh_keys` (public keys), `/var/git/repos` (repositories) - Host SSH runs on a non-standard port, so port 22 is free for git @@ -42,7 +42,7 @@ Bastion is a self-hosted server system on Debian that runs multiple services in ### 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` +- Networks: `git-network` (static IP 172.22.0.4) and `jenkins_network` (static IP 172.23.0.4) - 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` @@ -51,7 +51,7 @@ Bastion is a self-hosted server system on Debian that runs multiple services in ### Jenkins - Dir: `jenkins/` - Compose: `jenkins/docker-compose.yaml`, builds from `jenkins/Dockerfile` -- Network: `jenkins_network` +- Network: `jenkins_network` (172.23.0.0/16, static IP 172.23.0.2) - Uses Docker-out-of-Docker (DooD): mounts `/var/run/docker.sock` to spawn sibling build containers - Dockerfile extends `jenkins/jenkins:lts` with Docker CLI and `docker-workflow` plugin - `--prefix=/jenkins` set via JENKINS_OPTS for path-based access @@ -73,7 +73,7 @@ Bastion is a self-hosted server system on Debian that runs multiple services in Each stack has its own Docker network. Nginx joins all of them to reverse proxy: - `git-network` — git-server + cgit + gerrit + nginx - `ghost_network` — ghost + ghost-db + nginx -- `jenkins_network` — jenkins + gerrit + nginx +- `jenkins_network` — jenkins + git-server + gerrit + nginx ## Startup Order 1. Portainer (standalone) |
