38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Create Docker network for Forgejo
|
|
docker_network:
|
|
name: forgejo
|
|
|
|
# old DNS: 138.68.71.153
|
|
- name: Set up Forgejo container
|
|
docker_container:
|
|
name: forgejo
|
|
image: codeberg.org/forgejo/forgejo:{{ services.forgejo.version }}
|
|
restart_policy: unless-stopped
|
|
networks:
|
|
- name: forgejo
|
|
- name: postfix
|
|
- name: external_services
|
|
volumes:
|
|
- "{{ services.forgejo.volume_folder }}:/data"
|
|
published_ports:
|
|
- "22:22"
|
|
env:
|
|
VIRTUAL_HOST: "{{ services.forgejo.domain }}"
|
|
VIRTUAL_PORT: "3000"
|
|
LETSENCRYPT_HOST: "{{ services.forgejo.domain }}"
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
|
# Forgejo customization, see: https://docs.gitea.io/en-us/install-with-docker/#customization
|
|
# https://docs.gitea.io/en-us/config-cheat-sheet/#security-security
|
|
FORGEJO__mailer__ENABLED: "true"
|
|
FORGEJO__mailer__FROM: "noreply@{{ services.forgejo.domain }}"
|
|
FORGEJO__mailer__MAILER_TYPE: "smtp"
|
|
FORGEJO__mailer__HOST: "{{ smtp_host }}:{{ smtp_port }}"
|
|
FORGEJO__security__LOGIN_REMEMBER_DAYS: "60"
|
|
FORGEJO__security__PASSWORD_COMPLEXITY: "off"
|
|
FORGEJO__security__MIN_PASSWORD_LENGTH: "8"
|
|
FORGEJO__security__PASSWORD_CHECK_PWN: "true"
|
|
FORGEJO__service__ENABLE_NOTIFY_MAIL: "true"
|
|
FORGEJO__service__REGISTER_EMAIL_CONFIRM: "true"
|