2022-05-27 04:02:45 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
|
|
|
image: "gitea/gitea:${gitea_version}"
|
|
|
|
container_name: "${gitea_name}"
|
|
|
|
ports:
|
2022-05-27 06:28:51 +00:00
|
|
|
- "${gitea_ssh}:22"
|
|
|
|
- "${gitea_web}:3000"
|
2022-05-27 04:02:45 +00:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
environment:
|
2022-05-27 06:28:51 +00:00
|
|
|
- USER_UID={{ getent_passwd.git[1] }}
|
|
|
|
- USER_GID={{ getent_group.git[1] }}
|
2022-05-28 06:31:41 +00:00
|
|
|
- GITEA__log__MODE=file
|
2022-05-27 04:02:45 +00:00
|
|
|
- GITEA__server__ROOT_URL=${gitea_rooturl}
|
|
|
|
- GITEA__server__DOMAIN=${gitea_domain}
|
|
|
|
- GITEA__server__SSH_DOMAIN=${gitea_domain}
|
|
|
|
- GITEA__database__DB_TYPE=${gitea_dbtype}
|
|
|
|
- GITEA__database__HOST=${gitea_dbhost}
|
|
|
|
- GITEA__database__NAME=${gitea_dbname}
|
|
|
|
- GITEA__database__USER=${gitea_dbuser}
|
|
|
|
- GITEA__database__PASSWD=${gitea_dbpass}
|
2022-06-07 04:25:47 +00:00
|
|
|
- GITEA__security__INSTALL_LOCK=true
|
2022-05-28 04:18:15 +00:00
|
|
|
- GITEA__security__REVERSE_PROXY_LIMIT=${gitea_proxy_limit}
|
|
|
|
- GITEA__security__REVERSE_PROXY_TRUSTED_PROXIES=${gitea_trusted_proxies}
|
2022-05-27 04:02:45 +00:00
|
|
|
- GITEA__service__DISABLE_REGISTRATION=${gitea_disable_registration}
|
|
|
|
volumes:
|
|
|
|
- {{ gitea_volume }}:/data
|
2022-05-28 06:31:41 +00:00
|
|
|
- /home/git/.ssh:/data/git/.ssh
|
|
|
|
- /var/log/gitea:/data/gitea/log
|
2022-05-27 04:02:45 +00:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
{{ gitea_volume }}:
|