Compare commits

...

14 Commits

Author SHA1 Message Date
8ead189fde chore: publish 1.1.3+1.15.10-rootless release 2022-01-18 10:26:40 +01:00
c8ea311d7d fix: point to new drone instance [ci skip] 2021-12-31 16:31:34 +01:00
b2f29bc99e docs(README): how to enable SSH 2021-12-31 13:51:29 +01:00
741b8701e5 docs(README): correct command creating new user 2021-12-31 13:51:29 +01:00
bb1f0f082e Merge pull request 'docs(README): instruction to create first user' (#24) from aileoia/gitea:master into master
Reviewed-on: #24
2021-12-29 19:31:41 +00:00
cec9c2c061 docs(README): instruction to create first user 2021-12-29 18:13:43 +01:00
3wc
fee8fd5342 Goodbye, emojis! 😢
[ci skip]
2021-11-23 12:19:04 +02:00
3wc
83a9e9da6b chore: fix README bullet formatting
[ci skip]
2021-11-22 13:42:03 +02:00
3wc
ee34764179 Update metadata
[ci skip]
2021-11-21 21:51:51 +02:00
3wc
d0488d3a61 Add preliminary backups 2021-11-21 21:51:11 +02:00
7009473b38 chore: release patch version 2021-11-02 21:45:37 +01:00
0547336698 chore: bump patch version 2021-10-08 09:43:16 +02:00
632364fccf chore: sync labels 2021-10-08 09:22:33 +02:00
1aa71afcf6 chore: bump to v15 for gitea 2021-10-08 09:02:27 +02:00
3 changed files with 60 additions and 13 deletions

View File

@ -1,18 +1,16 @@
# Gitea # Gitea
[![Build Status](https://drone.coopcloud.tech/api/badges/coop-cloud/gitea/status.svg)](https://drone.coopcloud.tech/coop-cloud/gitea) [![Build Status](https://build.coopcloud.tech/api/badges/coop-cloud/gitea/status.svg)](https://build.coopcloud.tech/coop-cloud/gitea)
<!-- metadata --> <!-- metadata -->
* **Category**: Development
- **Category**: Development * **Status**: 3, stable
- **Status**: ❷💛 * **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), 4, upstream
- **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), ❶💚, upstream * **Healthcheck**: Yes
- **Healthcheck**: Yes * **Backups**: Yes
- **Backups**: No * **Email**: ?
- **Email**: ? * **Tests**: 2
- **Tests**: ❷💛 * **SSO**: 3 (OAuth)
- **SSO**: ❶💚 (OAuth)
<!-- endmetadata --> <!-- endmetadata -->
## Basic usage ## Basic usage
@ -24,3 +22,40 @@
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to 4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
your Docker swarm box your Docker swarm box
5. `abra app YOURAPPDOMAIN deploy` 5. `abra app YOURAPPDOMAIN deploy`
## Create first user
Run
```bash
abra app run YOURAPPNAME app gitea -c /etc/gitea/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL
```
See the [Gitea command-line documentation](https://docs.gitea.io/en-us/command-line/) for more options. Make sure not to forget the `-c /etc/gitea/app.ini`.
## Enable SSH
You most certainly want to be able to access your repository over SSH. To do so, make sure you uncomment the right lines in the configuration for `traefik`.
```
abra app config YOURTRAEFIKAPP
```
There uncomment or add these lines:
```
GITEA_SSH_ENABLED=1
COMPOSE_FILE="compose.yml:compose.gitea.yml"
```
Then redeploy traefik:
```
abra app undeploy YOURTRAEFIKAPP
abra app deploy YOURTRAEFIKAPP
```
You might need to wait a bit. To check if it worked, you can run
```
telnet my.gitea.example.com 2222
```
Once you have added a public SSH key, you can check that you can connect to your gitea server with
```
ssh -T -p 2222 git@my.gitea.example.com
```
Note that gitea should be configured to listen to port 2222, i.e. `GITEA_SSH_PORT=2222` in the gitea config.

12
abra.sh
View File

@ -1,2 +1,14 @@
export APP_INI_VERSION=v7 export APP_INI_VERSION=v7
export DOCKER_SETUP_SH_VERSION=v1 export DOCKER_SETUP_SH_VERSION=v1
abra_backup_app() {
_abra_backup_dir "app:/var/lib/gitea"
}
abra_backup_db() {
_abra_backup_mysql "db" "gitea"
}
abra_backup() {
abra_backup_app && abra_backup_db
}

View File

@ -3,7 +3,7 @@ version: "3.8"
services: services:
app: app:
image: "gitea/gitea:1.14.5-rootless" image: "gitea/gitea:1.15.10-rootless"
configs: configs:
- source: app_ini - source: app_ini
target: /etc/gitea/app.ini target: /etc/gitea/app.ini
@ -51,7 +51,7 @@ services:
- "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)" - "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)"
- "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh" - "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}" - "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
- coop-cloud.${STACK_NAME}.version=1.0.0+1.14.5-rootless - coop-cloud.${STACK_NAME}.version=1.1.3+1.15.10-rootless
db: db:
image: "mariadb:10.6" image: "mariadb:10.6"