Move Forgejo HTTP port to 3200 to avoid conflicts

This commit is contained in:
Tero Halla-aho 2025-12-11 22:13:19 +02:00
parent c626b84324
commit 47b5fd7f87
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ Lightweight Git hosting + CI with Forgejo (Gitea fork) behind Apache on halla-ah
Whats included Whats included
- Docker Compose for Forgejo + SSH and an Actions runner (`forgejo/docker-compose.yml`). - Docker Compose for Forgejo + SSH and an Actions runner (`forgejo/docker-compose.yml`).
- Apache vhost snippet (added to `default-ssl.conf`) to reverse-proxy `git.halla-aho.net` to the Forgejo container on port 3000. - Apache vhost snippet (added to `default-ssl.conf`) to reverse-proxy `git.halla-aho.net` to the Forgejo container on port 3200.
Prereqs Prereqs
- Docker installed on halla-aho.net. - Docker installed on halla-aho.net.
@ -23,7 +23,7 @@ Deploy Forgejo
docker compose -f forgejo/docker-compose.yml up -d forgejo docker compose -f forgejo/docker-compose.yml up -d forgejo
``` ```
3) Configure Apache (already added to `default-ssl.conf`): 3) Configure Apache (already added to `default-ssl.conf`):
- VirtualHost `git.halla-aho.net:9443` proxies to `http://127.0.0.1:3000/`. - VirtualHost `git.halla-aho.net:9443` proxies to `http://127.0.0.1:3200/`.
- TLS files: `/etc/apache2/ssl/git.halla-aho.net.{crt,key,chain.crt}` (update if different). - TLS files: `/etc/apache2/ssl/git.halla-aho.net.{crt,key,chain.crt}` (update if different).
- Enable the site and reload Apache. - Enable the site and reload Apache.
4) Finish setup in the UI at `https://git.halla-aho.net/`: 4) Finish setup in the UI at `https://git.halla-aho.net/`:

View file

@ -21,7 +21,7 @@ services:
volumes: volumes:
- /srv/forgejo/data:/data - /srv/forgejo/data:/data
ports: ports:
- "3000:3000" # HTTP (Apache will reverse proxy) - "3200:3000" # HTTP (Apache will reverse proxy)
- "2222:22" # SSH for git - "2222:22" # SSH for git
runner: runner: