mirror of
https://github.com/Dokploy/templates.git
synced 2026-11-14 21:11:44 -06:00
Ref: - https://docs.docker.com/reference/compose-file/version-and-name https://docs.docker.com/compose/intro/history
24 lines
583 B
YAML
24 lines
583 B
YAML
services:
|
|
gitea:
|
|
image: docker.gitea.com/gitea:1.24.4
|
|
restart: unless-stopped
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
# SQLite (default) lives at /data/gitea
|
|
# Example optional overrides (set in template.toml env or UI):
|
|
# - GITEA__mailer__ENABLED=true
|
|
volumes:
|
|
- gitea-data:/data
|
|
expose:
|
|
- "3000" # Web UI
|
|
- "22" # SSH (internal only)
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
volumes:
|
|
gitea-data: {}
|