ansible-edda/playbooks/roles/services/deploy/git/vars/main.yml

34 lines
1.9 KiB
YAML
Raw Normal View History

2023-11-11 21:54:08 +01:00
---
services_deploy_pod:
wants:
- "gitea"
containers:
gitea:
image: "docker.io/gitea/gitea:{{ services_service_deploy_versions.gitea }}"
podman_run_args:
- "-v ./.config/service/hosts:/etc/hosts:ro"
- "-v {{ services_data_directory }}/pod-git/data/_data:/data"
- "-v /etc/timezone:/etc/timezone:ro"
- "-v /etc/localtime:/etc/localtime:ro"
- "-e USER_UID=\"1000\""
- "-e USER_GID=\"1000\""
- "-e GITEA__database__DB_TYPE=\"postgres\""
- "-e GITEA__database__HOST=\"pod-database:5432\""
- "-e GITEA__database__NAME=\"{{ services[services_service_name].database.name }}\""
- "-e GITEA__database__USER=\"{{ services[services_service_name].database.user }}\""
- "-e GITEA__database__PASSWD=\"{{ services[services_service_name].database.password }}\""
- "-e GITEA__server__DOMAIN=\"{{ services[services_service_name].domain }}\""
- "-e GITEA__server__SSH_DOMAIN=\"{{ services[services_service_name].domain }}\""
- "-e GITEA__server__ROOT_URL=\"https://%(DOMAIN)s/\""
- "-e GITEA__server__START_SSH_SERVER=\"true\""
- "-e GITEA__server__SSH_PORT=\"{{ services[services_service_name].ssh_port }}\""
- "-e GITEA__server__SSH_LISTEN_PORT=\"{{ services[services_service_name].ssh_port }}\""
- "-e GITEA__mailer__ENABLED=\"true\""
- "-e GITEA__mailer__FROM=\"Gitea <noreply@{{ services[services_service_name].domain }}>\""
- "-e GITEA__mailer__MAILER_TYPE=\"smtp\""
- "-e GITEA__mailer__HOST=\"{{ services[services_service_name].smtp.host }}\""
- "-e GITEA__mailer__USER=\"{{ services[services_service_name].smtp.user }}\""
- "-e GITEA__mailer__PASSWD=\"{{ services[services_service_name].smtp.password }}\""
- "-e GITEA__service__DISABLE_REGISTRATION=\"true\""
- "-e GITEA__service__ENABLE_NOTIFY_MAIL=\"true\""