Skip to main content

Info generali

Gitlab è stato installato tramite docker seguendo le linee guida ufficiali

version: '3.6'
services:
  gitlab:
    image: 'gitlab/gitlab-ce:latest'
    container_name: gitlab
    restart: always
    hostname: 'gitlab.eagleprojects.cloud'
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'https://gitlab.eagleprojects.cloud'
        registry_external_url 'https://gitlab-registry.eagleprojects.cloud'
        registry_nginx['enable'] = true
        registry_nginx['listen_https'] = false
        registry_nginx['listen_port'] = '5005'
        # Add any other gitlab.rb configuration here, each on its own line
    ports:
      - '8081:80'
      - '4431:443'
      - '22:22'
      - '5005:5005'
    volumes:
      - './gitl_config:/etc/gitlab'
      - './gitl_logs:/var/log/gitlab'
      - './gitl_data:/var/opt/gitlab'
    shm_size: '512m'

La parte relativa a GITLAB_OMNIBUS_CONFIG è importante per il container registry e per l'HTTPS

Non è stato volutamente settato un SMTP per limitare la superficie di vulnerabilità