2023-08-23 20:48:34 -04:00
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
|
|
|
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
{% if "gitea" in group_names %}
|
|
|
|
gitea:
|
2023-08-27 21:59:01 -04:00
|
|
|
network_mode: host
|
2023-08-23 20:48:34 -04:00
|
|
|
container_name: gitea
|
|
|
|
image: gitea/gitea:latest
|
|
|
|
environment:
|
|
|
|
- USER=gitea
|
2023-08-27 21:59:01 -04:00
|
|
|
- GITEA__server__SSH_PORT=2499
|
|
|
|
- GITEA__server__SSH_LISTEN_PORT=2499
|
|
|
|
- GITEA__service__DISABLE_REGISTRATION=true
|
|
|
|
- GITEA__server__DOMAIN={{ gitea_domain }}
|
|
|
|
- GITEA__server__SSH_DOMAIN={{ gitea_domain }}
|
2023-08-23 20:48:34 -04:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- {{ dataroot }}/gitea:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
|
|
|
{% endif %}
|