feat: gitea working but not setup

This commit is contained in:
Haletran 2026-03-01 23:38:17 +01:00
parent 8161adbe6b
commit f11d969239
5 changed files with 52 additions and 2 deletions

View file

@ -77,3 +77,8 @@ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin dock
ssh-copy-id -p 2222 bapasqui@localhost
```
### Ressources
https://zenn.dev/zenogawa/articles/gitea_keycloak?locale=en

View file

@ -1,3 +1,3 @@
http://keycloak.ft-chatons.local {
reverse_proxy gitea:8080
http://vogsphere.ft-chatons.local {
reverse_proxy gitea:3000
}

42
core/git/compose.yml Normal file
View file

@ -0,0 +1,42 @@
services:
gitea:
image: gitea/gitea
container_name: gitea
environment:
USER_UID: 1000
USER_GID: 1000
GITEA__database__DB_TYPE: postgres
GITEA__database__HOST: gitea-postgres:5432
GITEA__database__NAME: gitea
GITEA__database__USER: gitea
GITEA__database__PASSWD: gitea
networks:
- proxy
restart: unless-stopped
ports:
- "3000"
- "222:22"
volumes:
- gitea-data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
postgres:
image: library/postgres
container_name: gitea-postgres
restart: always
networks:
- proxy
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
volumes:
gitea-data:
networks:
proxy:
name: proxy
external: true

View file

@ -13,6 +13,8 @@ services:
KC_DB_PASSWORD: password
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
KC_HOSTNAME_PORT: 8081
KC_PROXY: edge
command:
- start-dev
restart: unless-stopped

View file

@ -34,6 +34,7 @@ case "$1" in
just re caddy
just re doh
just re postgresql
just re git
#just re keycloak
;;
esac