olimp/roles/gitlab/templates/docker-compose.gitlab.yml.j2
Administrator 0425d6ec71 Update 2 files
- /roles/gitlab/tasks/main.yml
- /roles/gitlab/templates/docker-compose.gitlab.yml.j2
2025-11-27 10:16:30 +00:00

36 lines
1.3 KiB
Django/Jinja

version: '3.8'
services:
gitlab:
image: gitlab/gitlab-ce:{{ gitlab_version }}
container_name: gitlab
restart: always
hostname: '{{ gitlab_hostname }}'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url '{{ gitlab_external_url }}'
gitlab_rails['gitlab_shell_ssh_port'] = {{ gitlab_ssh_port }}
nginx['listen_port'] = 80
nginx['listen_https'] = false
letsencrypt['enable'] = false
gitlab_rails['initial_root_password'] = '{{ gitlab_root_password }}'
gitlab_rails['time_zone'] = '{{ timezone }}'
# Отключаем встроенный мониторинг для экономии ресурсов
prometheus_monitoring['enable'] = false
node_exporter['enable'] = false
redis_exporter['enable'] = false
postgres_exporter['enable'] = false
gitaly['configuration'] = {
prometheus: {
listen_addr: 'localhost:9236',
enabled: false
}
}
ports:
- "{{ gitlab_http_port }}:80"
- "{{ gitlab_ssh_port }}:22"
volumes:
- '{{ gitlab_config_dir }}:/etc/gitlab'
- '{{ gitlab_logs_dir }}:/var/log/gitlab'
- '{{ gitlab_data_dir }}:/var/opt/gitlab'
- '{{ gitlab_backup_dir }}:/var/opt/gitlab/backups'
shm_size: '256m'