2022-01-30 14:52:31 +00:00
|
|
|
---
|
2024-10-10 14:55:57 +00:00
|
|
|
gitea_version: "1.22.3"
|
2022-01-30 14:52:31 +00:00
|
|
|
gitea_user: git
|
2023-10-07 20:18:02 +00:00
|
|
|
gitea_run_user: "{{ gitea_user }}"
|
2022-01-30 14:52:31 +00:00
|
|
|
gitea_base_path: "/opt/gitea"
|
|
|
|
gitea_data_path: "{{ gitea_base_path }}/data"
|
|
|
|
|
|
|
|
# Set this to the (sub)domain gitea will run at
|
|
|
|
gitea_domain: ~
|
|
|
|
|
|
|
|
# container config
|
2023-10-07 20:18:02 +00:00
|
|
|
gitea_container_name: "{{ gitea_user }}"
|
2024-10-10 14:55:27 +00:00
|
|
|
gitea_container_image_server: "docker.io"
|
2024-10-03 12:05:35 +00:00
|
|
|
gitea_container_image_name: "gitea"
|
|
|
|
gitea_container_image_namespace: gitea
|
|
|
|
gitea_container_image_fq_name: >-
|
|
|
|
{{
|
|
|
|
[
|
|
|
|
gitea_container_image_server,
|
|
|
|
gitea_container_image_namespace,
|
|
|
|
gitea_container_image_name
|
|
|
|
] | join('/')
|
|
|
|
}}
|
2022-01-30 14:52:31 +00:00
|
|
|
gitea_container_image_tag: "{{ gitea_version }}"
|
2024-10-03 12:05:35 +00:00
|
|
|
gitea_container_image: >-2
|
|
|
|
{{ gitea_container_image_fq_name }}:{{ gitea_container_image_tag }}
|
2022-01-30 14:52:31 +00:00
|
|
|
gitea_container_networks: []
|
|
|
|
gitea_container_purge_networks: ~
|
|
|
|
gitea_container_restart_policy: "unless-stopped"
|
|
|
|
gitea_container_extra_env: {}
|
2023-10-07 20:18:02 +00:00
|
|
|
gitea_container_extra_labels: {}
|
2022-01-30 14:52:31 +00:00
|
|
|
gitea_container_extra_ports: []
|
|
|
|
gitea_container_extra_volumes: []
|
2023-10-07 20:18:02 +00:00
|
|
|
gitea_container_state: started
|
2022-01-30 14:52:31 +00:00
|
|
|
|
|
|
|
# container defaults
|
|
|
|
gitea_container_base_volumes:
|
|
|
|
- "{{ gitea_data_path }}:/data:z"
|
|
|
|
- "/home/{{ gitea_user }}/.ssh/:/data/git/.ssh:z"
|
|
|
|
|
|
|
|
gitea_container_base_ports:
|
|
|
|
- "127.0.0.1:{{ git_container_port_webui }}:{{ git_container_port_webui }}"
|
|
|
|
- "127.0.0.1:{{ git_container_port_ssh }}:{{ git_container_port_ssh }}"
|
|
|
|
|
|
|
|
gitea_container_base_env:
|
|
|
|
USER_UID: "{{ gitea_user_res.uid | default(gitea_user) }}"
|
|
|
|
USER_GID: "{{ gitea_user_res.group | default(gitea_user) }}"
|
|
|
|
|
|
|
|
gitea_container_base_labels:
|
|
|
|
version: "{{ gitea_version }}"
|
|
|
|
|
|
|
|
gitea_config_mailer_enabled: false
|
|
|
|
gitea_config_mailer_type: ~
|
|
|
|
gitea_config_mailer_from_addr: ~
|
2024-09-19 12:23:44 +00:00
|
|
|
gitea_config_mailer_smtp_addr: ~
|
2022-01-30 14:52:31 +00:00
|
|
|
gitea_config_mailer_user: ~
|
|
|
|
gitea_config_mailer_passwd: ~
|
2024-09-19 12:23:44 +00:00
|
|
|
gitea_config_mailer_protocol: ~
|
2022-01-30 14:52:31 +00:00
|
|
|
gitea_config_mailer_sendmail_path: ~
|
|
|
|
gitea_config_metrics_enabled: false
|
|
|
|
|
|
|
|
gitea_config: "{{ gitea_config_base | combine(gitea_extra_config, recursive=True, list_merge='append') }}"
|
|
|
|
gitea_extra_config: {}
|