moved gitea compose to template and added smtp config

This commit is contained in:
Phil 2024-10-09 12:29:07 -06:00
parent 5e2abd7713
commit 24dd7d3e67
2 changed files with 11 additions and 4 deletions

View File

@ -5,9 +5,9 @@
loop:
- /opt/stacks/gitea
- name: copy gitea compose file
ansible.builtin.copy:
src: gitea-compose.yml
- name: Template out the compose file
ansible.builtin.template:
src: glance-compose.yml.j2
dest: /opt/stacks/gitea/compose.yml
owner: root
mode: 644

View File

@ -6,6 +6,13 @@ services:
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__mailer__ENABLED=true
- GITEA__mailer__FROM=git@updates.thesatelliteoflove.com
- GITEA__mailer__PROTOCOL=smtps
- GITEA__mailer__SMTP_ADDR=smtp.resend.com
- GITEA__mailer__SMTP_PORT=465
- GITEA__mailer__USER=resend
- GITEA__mailer__PASSWD={{ resend_key }}
restart: unless-stopped
volumes:
- gitea:/data
@ -14,7 +21,7 @@ services:
ports:
- 222:22
extra_hosts:
- 'auth.thesatelliteoflove.com:172.20.0.3'
- 'auth.thesatelliteoflove.com:172.20.0.5'
volumes:
gitea:
driver: local