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: loop:
- /opt/stacks/gitea - /opt/stacks/gitea
- name: copy gitea compose file - name: Template out the compose file
ansible.builtin.copy: ansible.builtin.template:
src: gitea-compose.yml src: glance-compose.yml.j2
dest: /opt/stacks/gitea/compose.yml dest: /opt/stacks/gitea/compose.yml
owner: root owner: root
mode: 644 mode: 644

View File

@ -6,6 +6,13 @@ services:
environment: environment:
- USER_UID=1000 - USER_UID=1000
- USER_GID=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 restart: unless-stopped
volumes: volumes:
- gitea:/data - gitea:/data
@ -14,7 +21,7 @@ services:
ports: ports:
- 222:22 - 222:22
extra_hosts: extra_hosts:
- 'auth.thesatelliteoflove.com:172.20.0.3' - 'auth.thesatelliteoflove.com:172.20.0.5'
volumes: volumes:
gitea: gitea:
driver: local driver: local