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 }}"
timeout: 600
state: started
delay: 30
delay: 5
- name: Check GitLab status
uri:

View File

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