From eb3d2edaf5e1b2b40f4783fcf1d4f58e3bab76f5 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Tue, 21 Nov 2023 23:00:10 +0100 Subject: [PATCH] Break cache temp --- roles/gitea/tasks/base.yml | 1 + roles/gitea/templates/config.yml | 5 +++++ roles/gitea/templates/docker-compose.yml | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 roles/gitea/templates/config.yml diff --git a/roles/gitea/tasks/base.yml b/roles/gitea/tasks/base.yml index 81c692d..1ea98d0 100644 --- a/roles/gitea/tasks/base.yml +++ b/roles/gitea/tasks/base.yml @@ -11,6 +11,7 @@ dest: "gitea/{{ item.dest }}" loop: - { src: 'docker-compose.yml', dest: 'docker-compose.yml' } + - { src: 'config.yml', dest: 'config.yml' } register: gitea_copy_templates_results - name: Update and restart container diff --git a/roles/gitea/templates/config.yml b/roles/gitea/templates/config.yml new file mode 100644 index 0000000..f61bf10 --- /dev/null +++ b/roles/gitea/templates/config.yml @@ -0,0 +1,5 @@ +cache: + enabled: true + dir: "" + host: 0.0.0.0 + port: 8088 diff --git a/roles/gitea/templates/docker-compose.yml b/roles/gitea/templates/docker-compose.yml index 6952188..a0788b8 100644 --- a/roles/gitea/templates/docker-compose.yml +++ b/roles/gitea/templates/docker-compose.yml @@ -45,10 +45,14 @@ services: restart: unless-stopped depends_on: - gitea + ports: + - 8088:8088 volumes: + - ./config.yml:/config.yml - {{ server.work_dir }}/gitea/runner/:/data - /var/run/docker.sock:/var/run/docker.sock environment: + - CONFIG_FILE=/config.yml - GITEA_INSTANCE_URL=https://gitea.{{ server.domain }} - GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea.runner_registration_token }}