Update 2 files

- /roles/gitlab/tasks/main.yml
- /roles/gitlab/templates/docker-compose.gitlab.yml.j2
This commit is contained in:
Administrator 2025-11-27 10:16:30 +00:00
parent a3772264ee
commit 0425d6ec71
2 changed files with 8 additions and 9 deletions

View File

@ -43,7 +43,7 @@
port: "{{ gitlab_http_port }}" port: "{{ gitlab_http_port }}"
timeout: 600 timeout: 600
state: started state: started
delay: 30 delay: 5
- name: Check GitLab status - name: Check GitLab status
uri: uri:

View File

@ -19,7 +19,12 @@ services:
node_exporter['enable'] = false node_exporter['enable'] = false
redis_exporter['enable'] = false redis_exporter['enable'] = false
postgres_exporter['enable'] = false postgres_exporter['enable'] = false
gitaly['prometheus_listen_addr'] = false gitaly['configuration'] = {
prometheus: {
listen_addr: 'localhost:9236',
enabled: false
}
}
ports: ports:
- "{{ gitlab_http_port }}:80" - "{{ gitlab_http_port }}:80"
- "{{ gitlab_ssh_port }}:22" - "{{ gitlab_ssh_port }}:22"
@ -29,9 +34,3 @@ services:
- '{{ gitlab_data_dir }}:/var/opt/gitlab' - '{{ gitlab_data_dir }}:/var/opt/gitlab'
- '{{ gitlab_backup_dir }}:/var/opt/gitlab/backups' - '{{ gitlab_backup_dir }}:/var/opt/gitlab/backups'
shm_size: '256m' shm_size: '256m'
networks:
- gitlab-network
networks:
gitlab-network:
driver: bridge