move gitea port to 22

This commit is contained in:
2026-02-25 12:17:39 -05:00
parent cd56318ab0
commit cb486ae289
2 changed files with 7 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ services:
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:22"
- "22:22"
depends_on:
- db

View File

@@ -21,8 +21,11 @@
Prereqs
1. Mount data dirs at `/srv/gitea-data` and `/srv/gitea-db`
2. Create a gitea user and update gitea-compose.yaml with the correct UID
1. Change the default SSH port for your server to 2022 (or something similar).
2. Allow SSH to bind to that port: `semanage port -a -t ssh_port_t -p tcp 2022`
3. Allow 2022 on the firewall: `firewall-cmd --add-port=2022/tcp --permanent && firewall-cmd --reload`
4. Mount data dirs at `/srv/gitea-data` and `/srv/gitea-db`
5. Create a gitea user and update gitea-compose.yaml with the correct UID
```bash
scp active/container_gitea/gitea-compose.yaml gitea: