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 }}