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