ansible/roles/docker/tasks/services/gitea.yml

39 lines
1.3 KiB
YAML
Raw Normal View History

---
2020-04-12 14:34:52 +00:00
- name: gitea network
2022-11-26 08:52:41 +00:00
community.docker.docker_network:
2020-04-12 14:34:52 +00:00
name: gitea
2019-02-13 07:41:41 +00:00
# old DNS: 138.68.71.153
- name: gitea container
2022-11-26 08:52:41 +00:00
community.docker.docker_container:
name: gitea
image: gitea/gitea:{{ services.gitea.version }}
2019-02-12 17:34:59 +00:00
restart_policy: unless-stopped
networks:
- name: gitea
2022-01-24 09:19:54 +00:00
- name: postfix
- name: external_services
volumes:
2022-11-26 08:52:41 +00:00
- '{{ services.gitea.volume_folder }}:/data'
published_ports:
2022-11-26 08:52:41 +00:00
- 22:22
env:
2022-11-26 08:52:41 +00:00
VIRTUAL_HOST: '{{ services.gitea.domain }}'
VIRTUAL_PORT: '3000'
LETSENCRYPT_HOST: '{{ services.gitea.domain }}'
LETSENCRYPT_EMAIL: '{{ letsencrypt_email }}'
# Gitea customization, see: https://docs.gitea.io/en-us/install-with-docker/#customization
# https://docs.gitea.io/en-us/config-cheat-sheet/#security-security
GITEA__mailer__ENABLED: 'true'
GITEA__mailer__FROM: noreply@{{ services.gitea.domain }}
GITEA__mailer__MAILER_TYPE: smtp
GITEA__mailer__HOST: '{{ smtp_host }}:{{ smtp_port }}'
GITEA__mailer__USER: noop
GITEA__mailer__PASSWD: noop
GITEA__security__LOGIN_REMEMBER_DAYS: '60'
GITEA__security__PASSWORD_COMPLEXITY: 'off'
GITEA__security__MIN_PASSWORD_LENGTH: '8'
GITEA__security__PASSWORD_CHECK_PWN: 'true'
GITEA__service__ENABLE_NOTIFY_MAIL: 'true'
GITEA__service__REGISTER_EMAIL_CONFIRM: 'true'