version: "3.9" services: gitlab: image: 'gitlab/gitlab-ee:15.9.2-ee.0' container_name: gitlab restart: always hostname: 'localhost' environment: GITLAB_OMNIBUS_CONFIG: | # root account setup gitlab_rails['initial_root_password'] = "${GITLAB_ROOT_PASSWORD}" gitlab_rails['gitlab_root_email'] = "${GITLAB_ROOT_EMAIL}" # network setup letsencrypt['enable'] = false external_url 'http://0.0.0.0' # gitlab_rails['gitlab_https'] = true # gitlab_rails['gitlab_port'] = 443 ports: - 0.0.0.0:80:80 - 0.0.0.0:443:443 - 0.0.0.0:2222:22 volumes: - ./volumes/gitlab/config:/etc/gitlab - ./volumes/gitlab/data:/var/opt/gitlab # - ./volumes/gitlab/logs:/var/log/gitlab shm_size: '256m'