This commit is contained in:
2026-07-19 17:33:14 +02:00
parent 4daebed7e0
commit b50bd0c303
24 changed files with 585 additions and 5 deletions
+39
View File
@@ -0,0 +1,39 @@
# Git-over-ssh stays on the host sshd port 22 via passthrough
services:
db:
image: mariadb:11.8
restart: unless-stopped
environment:
MARIADB_DATABASE: gitea
MARIADB_USER: gitea
MARIADB_PASSWORD: "{{ gitea_db_password }}"
MARIADB_RANDOM_ROOT_PASSWORD: 1
volumes:
- db:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
retries: 12
gitea:
image: docker.gitea.com/gitea:1.26.4
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
# Match the host "gitea" passthrough user (tasks/gitea.yml)
# for access to authorized_keys
USER_UID: 2222
USER_GID: 2222
# Must match RUN_USER in data/gitea/conf/app.ini.
USER: gitea
ports:
- "127.0.0.1:8083:3000"
- "127.0.0.1:2222:22"
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
volumes:
db:
+8
View File
@@ -0,0 +1,8 @@
$ANSIBLE_VAULT;1.1;AES256
38636231623835373231353663356664626532653632623064323361316330653838373637646261
6164313264623363626236346138303639613666363466310a633563353032646531333339666563
36353563313934623637646131383231396436393138333537396138393834376532336630326366
3633396139613661380a393431356635663136633131633836616630306131333231316436663432
39326232383262363936333134313862393265383266303137616537623032616437623735643734
36646231343438383566366230616365623638643132383533643731633535326535623765336664
303661616561333336306165633932353765