olimp/roles/gitlab/templates/docker-compose.gitlab.yml.j2
Administrator 64ff956221 Update 4 files
- /roles/gitlab/tasks/main.yml
- /roles/gitlab/templates/docker-compose.gitlab.yml.j2
- /olimp-deploy.yml
- /inventories/hosts
2025-11-27 05:45:27 +00:00

37 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['prometheus_listen_addr'] = 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'
networks:
- gitlab-network
networks:
gitlab-network:
driver: bridge