Toto repo ma novou cistou historii (1 commit). Predchozi historie byla smazana, protoze obsahovala osobni udaje (IP, emaily, hesla, klice, tokeny, Volume cesty). Soubory v aktualnim commit uz tyto udaje neobsahuji (nahradeno placeholdery <server-ip>, CHANGE_ME, admin@example.com atd.). Pokud chces zpet kompletni seznam starych commitu, mas je ve svem lokalnim working tree - git log --all ukaze prazdno (protoze jsme smazali .git/ a zacali znovu).
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
---
|
|
# Gitea - self-hosted Git service
|
|
# - zdroj: https://docs.gitea.com/installation/install-with-docker/
|
|
# - image: docker.gitea.com/gitea:1.27.1 (stabilni LTS)
|
|
# - SQLite (zadna DB navic, vhodne pro maly/stredni server)
|
|
# - porty: 3000 (web), 222 (SSH pro git push pres SSH)
|
|
# - UID/GID 1000:1000 (sedí na serveru mates:1000)
|
|
services:
|
|
server:
|
|
image: docker.gitea.com/gitea:1.27.1
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- GITEA__webhook__SKIP_TLS_VERIFY=false
|
|
- GITEA__service__DISABLE_REGISTRATION=false
|
|
- GITEA__service__REQUIRE_SIGNIN_VIEW=false
|
|
- GITEA__session__COOKIE_SECURE=false
|
|
restart: unless-stopped
|
|
networks:
|
|
- gitea_net
|
|
volumes:
|
|
- ./gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "3000:3000"
|
|
- "222:22"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
networks:
|
|
gitea_net:
|
|
name: gitea_default
|
|
driver: bridge
|