- Corrections de bugs (14): grep portable, df robuste, rollback reel, retention intelligente, nettoyage cible, lock anti-concurrence, etc. - Nouveaux fichiers: setup.sh (installateur tout-en-un), restore.sh (restauration standalone), gitea-scripts.conf (config unifiee) - Features: backup distant (rsync/SCP), lock files, logrotate, dry-run, healthchecks Docker, notifications Telegram/ntfy.sh - Documentation enrichie avec diagrammes d'architecture mermaid
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
---
|
|
networks:
|
|
gitea:
|
|
external: false
|
|
|
|
services:
|
|
gitea_server:
|
|
image: gitea/gitea:latest
|
|
container_name: gitea_server
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- GITEA__database__DB_TYPE=mysql
|
|
- GITEA__database__HOST=gitea_db:3306
|
|
- GITEA__database__NAME=gitea
|
|
- GITEA__database__USER=gitea
|
|
- GITEA__database__PASSWD=chab30
|
|
- GITEA__DISABLE_REGISTRATION=true
|
|
restart: always
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- /DOCKER_CONFIG/gitea/data:/data
|
|
- /DOCKER_CONFIG/gitea/data/themes:/data/gitea/public/assets/css/themes
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "3000:3000"
|
|
- "222:22"
|
|
depends_on:
|
|
gitea_db:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 30s
|
|
|
|
gitea_db:
|
|
image: mysql:8
|
|
container_name: gitea_db
|
|
restart: always
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=gitea
|
|
- MYSQL_USER=gitea
|
|
- MYSQL_PASSWORD=chab30
|
|
- MYSQL_DATABASE=gitea
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- /DOCKER_CONFIG/gitea/mysql:/var/lib/mysql
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"mysqladmin",
|
|
"ping",
|
|
"-h",
|
|
"localhost",
|
|
"-u",
|
|
"root",
|
|
"-p${MYSQL_ROOT_PASSWORD:-gitea}",
|
|
]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s
|