expose db connect to localhost for backups

This commit is contained in:
2024-01-07 03:10:22 +01:00
parent 833ea3cd59
commit a05ebc81e9
4 changed files with 11 additions and 0 deletions

View File

@@ -30,6 +30,8 @@
- /home/{{ system_user_name }}/docker/gitea/db:/var/lib/mysql
networks:
- name: gitea_internal
ports:
- "{{ BORGMATIC_BACKUP_HOST }}:{{ BORGMATIC_GITEA_DB_PORT }}:{{GITEA_DB_PORT}}"
- name: Create Gitea Container
community.docker.docker_container:
@@ -42,6 +44,8 @@
- '11004:3000'
- '222:22'
env:
USER_UID: "{{ system_user_uid }}"
USER_GID: "{{ system_user_gid }}"
GITEA__database__DB_TYPE: "{{ GITEA_DB_TYPE | string}}"
GITEA__database__HOST: "{{ GITEA_DB_HOST | string}}"
GITEA__database__NAME: "{{ GITEA_DB_NAME | string }}"