Refactor everything
This commit is contained in:
parent
2e100d290f
commit
3f2e60becf
69 changed files with 366 additions and 281 deletions
|
@ -1,8 +1,12 @@
|
|||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||||
|
||||
- name: Deploy {{ svc.name }}
|
||||
tags:
|
||||
- forgejo
|
||||
- git
|
||||
vars:
|
||||
svc: "{{ forgejo_svc }}"
|
||||
env: "{{ forgejo_env }}"
|
||||
compose: "{{ forgejo_compose }}"
|
||||
block:
|
||||
- name: Import tasks to deploy common service
|
||||
ansible.builtin.import_tasks: tasks/deploy-common-service.yml
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
svc:
|
||||
forgejo_svc:
|
||||
domain: git.serguzim.me
|
||||
name: forgejo
|
||||
port: 3000
|
||||
|
@ -10,7 +10,7 @@ svc:
|
|||
ssh_port: 22
|
||||
ssh_port_alt: 3022
|
||||
|
||||
svc_env:
|
||||
forgejo_env:
|
||||
FORGEJO__database__DB_TYPE: postgres
|
||||
FORGEJO__database__HOST: "{{ svc.db.host }}:{{ svc.db.port }}"
|
||||
FORGEJO__database__NAME: forgejo
|
||||
|
@ -78,10 +78,9 @@ svc_env:
|
|||
FORGEJO__other__SHOW_FOOTER_VERSION: true
|
||||
FORGEJO__other__SHOW_FOOTER_TEMPLATE_LOAD_TIME: false
|
||||
|
||||
compose:
|
||||
forgejo_compose:
|
||||
watchtower: true
|
||||
image: codeberg.org/forgejo/forgejo:1.21
|
||||
env: true
|
||||
volumes:
|
||||
- data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
|
|
Reference in a new issue