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

53 lines
2.7 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 }}"
2024-06-16 12:30:39 +02:00
wants:
- "runner"
2023-11-11 21:54:08 +01:00
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\""
2024-01-06 12:21:34 +01:00
runner:
image: "docker.io/gitea/act_runner:{{ services_service_deploy_versions.act_runner }}"
2024-06-16 12:30:39 +02:00
binds_to:
- "gitea"
2024-01-06 12:21:34 +01:00
podman_run_args:
- "-v ./.config/service/hosts:/etc/hosts:ro"
- "-v ./.config/service/runner.yml:/config.yaml"
- "-v {{ services_data_directory }}/pod-git/runner/_data:/data"
- "-v /etc/timezone:/etc/timezone:ro"
- "-v /etc/localtime:/etc/localtime:ro"
- "-v %t/podman/podman.sock:%t/podman/podman.sock"
- "-e DOCKER_HOST=unix://%t/podman/podman.sock"
- "-e CONFIG_FILE=/config.yaml"
- "-e GITEA_INSTANCE_URL=https://{{ services[services_service_name].domain }}"
- "-e GITEA_RUNNER_REGISTRATION_TOKEN={{
services[services_service_name].runner.registration_token }}"
- "-e GITEA_RUNNER_NAME=main"