move gitea port to 22
This commit is contained in:
@@ -24,7 +24,7 @@ services:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2222:22"
|
||||
- "22:22"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user